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 Annotation
getAnnotation
(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
-
getScopes
Set<Class<? extends Annotation>> getScopes()- Returns:
- The scope of this handler, one of
RequestScoped
,ViewScoped
,SessionScoped
, orApplicationScoped
-
put
- Parameters:
name
- Name of the propertyvalue
- Value to set
-
get
- Parameters:
name
- Name of the property- Returns:
- Value associated with the name, or
null
-
remove
- Parameters:
name
- Name of the property to remove- Returns:
- Previous value associated with the name, or
null
-
getAnnotation
- Parameters:
beanClass
- Bean class for which to get the scope.- Returns:
- The scope annotation for this scope type.
-
getPreferredScope
Class<? extends Annotation> getPreferredScope()- Returns:
- The preferred scope.
-
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 .
-