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 voidaddMapping(Class<? extends Annotation> annotation, String scopeName)voidaddMapping(AnnotationToScopeMapping annotationToScopeMapping)protected StringdeduceScopeName(AnnotationMetadata classMetadata)protected StringdeduceScopeName(MethodMetadata factoryMethodMetadata)List<AnnotationToScopeMapping>getAnnotationToScopeMappings()intgetOrder()voidpostProcessBeanFactory(ConfigurableListableBeanFactory clbf)voidsetAnnotationToScopeMappings(List<AnnotationToScopeMapping> annotationToScopeMappings)voidsetOrder(int order) 
 - 
 
- 
- 
Method Detail
- 
postProcessBeanFactory
public void postProcessBeanFactory(ConfigurableListableBeanFactory clbf) throws BeansException
- Specified by:
 postProcessBeanFactoryin 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)
 
 - 
 
 -