Interface IBeanScopeHandler
- All Superinterfaces:
Serializable
Handler for the various different bean scopes, such as session scoped beans or view scoped beans.
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptiondefault AnnotationgetAnnotation(Class<?> beanClass) default org.apache.commons.lang3.tuple.Pair<Class<? extends Annotation>, ? extends Annotation> getAnnotationAndScope(Class<?> beanClass) Class<? extends Annotation> Set<Class<? extends Annotation>> void
-
Method Details
-
get
-
getAnnotation
- Parameters:
beanClass- Bean class for which to get the scope.- Returns:
- The scope annotation for this scope type.
-
getAnnotationAndScope
default org.apache.commons.lang3.tuple.Pair<Class<? extends Annotation>, ? extends Annotation> getAnnotationAndScope(Class<?> beanClass) - Parameters:
beanClass- Bean class for which to get the scope.- Returns:
- The scope annotation for this scope type, and the class of the .
-
getPreferredScope
Class<? extends Annotation> getPreferredScope()- Returns:
- The preferred scope.
-
getScopes
Set<Class<? extends Annotation>> getScopes()- Returns:
- The scope of this handler, one of
RequestScoped,ViewScoped,SessionScoped, orApplicationScoped
-
put
-
remove
-