Class CustomScopeAnnotationConfigurer
- java.lang.Object
-
- org.joinfaces.autoconfigure.scopemapping.CustomScopeAnnotationConfigurer
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor,org.springframework.core.Ordered
public class CustomScopeAnnotationConfigurer extends java.lang.Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.OrderedAdd custom JSF CDI scope implementations. Picks up JSF and CDI annotations both on types and method bean declarations.
-
-
Constructor Summary
Constructors Constructor Description CustomScopeAnnotationConfigurer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMapping(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.String scopeName)voidaddMapping(AnnotationToScopeMapping annotationToScopeMapping)protected java.lang.StringdeduceScopeName(org.springframework.core.type.AnnotationMetadata classMetadata)protected java.lang.StringdeduceScopeName(org.springframework.core.type.MethodMetadata factoryMethodMetadata)java.util.List<AnnotationToScopeMapping>getAnnotationToScopeMappings()intgetOrder()voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory clbf)voidsetAnnotationToScopeMappings(java.util.List<AnnotationToScopeMapping> annotationToScopeMappings)voidsetOrder(int order)
-
-
-
Method Detail
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory clbf) throws org.springframework.beans.BeansException- Specified by:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor- Throws:
org.springframework.beans.BeansException
-
deduceScopeName
protected java.lang.String deduceScopeName(org.springframework.core.type.MethodMetadata factoryMethodMetadata)
-
deduceScopeName
protected java.lang.String deduceScopeName(org.springframework.core.type.AnnotationMetadata classMetadata)
-
addMapping
public void addMapping(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.String scopeName)
-
addMapping
public void addMapping(AnnotationToScopeMapping annotationToScopeMapping)
-
getAnnotationToScopeMappings
public java.util.List<AnnotationToScopeMapping> getAnnotationToScopeMappings()
-
setAnnotationToScopeMappings
public void setAnnotationToScopeMappings(java.util.List<AnnotationToScopeMapping> annotationToScopeMappings)
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-
-