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.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
- 
 - 
Constructor SummaryConstructors Constructor Description CustomScopeAnnotationConfigurer()
 - 
Method SummaryAll 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- 
postProcessBeanFactorypublic void postProcessBeanFactory(ConfigurableListableBeanFactory clbf) throws BeansException - Specified by:
- postProcessBeanFactoryin interface- BeanFactoryPostProcessor
- Throws:
- BeansException
 
 - 
deduceScopeNameprotected String deduceScopeName(MethodMetadata factoryMethodMetadata) 
 - 
deduceScopeNameprotected String deduceScopeName(AnnotationMetadata classMetadata) 
 - 
addMappingpublic void addMapping(Class<? extends Annotation> annotation, String scopeName) 
 - 
addMappingpublic void addMapping(AnnotationToScopeMapping annotationToScopeMapping) 
 - 
getAnnotationToScopeMappingspublic List<AnnotationToScopeMapping> getAnnotationToScopeMappings() 
 - 
setAnnotationToScopeMappingspublic void setAnnotationToScopeMappings(List<AnnotationToScopeMapping> annotationToScopeMappings) 
 - 
setOrderpublic void setOrder(int order) 
 
- 
 
-