could some explain what a none scope is and purpose of it?
Suppose if i have a bean in
request scope as r1
session scope as s1
application scope a
@NoneScoped would be beneficial in the following scenario.
Assume that we have to inject the same bean in two different scoped beans, we can mark that bean as @NoneScoped. Say a bean BeanOne with @NoneScoped can be easily injected in any bean with any scope like @Request or @Session.
Without using @NoneScoped for BeanOne, we may have to duplicate the bean with different scopes and inject them accordingly.