Class CustomScopeAnnotationConfigurer
- java.lang.Object
-
- org.joinfaces.autoconfigure.scopemapping.CustomScopeAnnotationConfigurer
-
- All Implemented Interfaces:
BeanFactoryPostProcessor
,Ordered
public class CustomScopeAnnotationConfigurer extends Object implements BeanFactoryPostProcessor, Ordered
Add custom JSF CDI scope implementations. Picks up JSF and CDI annotations both on types and method bean declarations.
-
-
Field Summary
-
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
-
Constructor Summary
Constructors Constructor Description CustomScopeAnnotationConfigurer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMapping(Class<? extends Annotation> annotation, String scopeName)
void
addMapping(AnnotationToScopeMapping annotationToScopeMapping)
protected String
deduceScopeName(AnnotationMetadata classMetadata)
protected String
deduceScopeName(MethodMetadata factoryMethodMetadata)
List<AnnotationToScopeMapping>
getAnnotationToScopeMappings()
int
getOrder()
void
postProcessBeanFactory(ConfigurableListableBeanFactory clbf)
void
setAnnotationToScopeMappings(List<AnnotationToScopeMapping> annotationToScopeMappings)
void
setOrder(int order)
-
-
-
Method Detail
-
postProcessBeanFactory
public void postProcessBeanFactory(ConfigurableListableBeanFactory clbf) throws BeansException
- Specified by:
postProcessBeanFactory
in interfaceBeanFactoryPostProcessor
- Throws:
BeansException
-
deduceScopeName
protected String deduceScopeName(MethodMetadata factoryMethodMetadata)
-
deduceScopeName
protected String deduceScopeName(AnnotationMetadata classMetadata)
-
addMapping
public void addMapping(Class<? extends Annotation> annotation, String scopeName)
-
addMapping
public void addMapping(AnnotationToScopeMapping annotationToScopeMapping)
-
getAnnotationToScopeMappings
public List<AnnotationToScopeMapping> getAnnotationToScopeMappings()
-
setAnnotationToScopeMappings
public void setAnnotationToScopeMappings(List<AnnotationToScopeMapping> annotationToScopeMappings)
-
setOrder
public void setOrder(int order)
-
-