Class CustomScopeAnnotationConfigurer
- java.lang.Object
-
- org.joinfaces.autoconfigure.scopemapping.CustomScopeAnnotationConfigurer
-
- All Implemented Interfaces:
BeanFactoryPostProcessor
,Ordered
public class CustomScopeAnnotationConfigurer extends java.lang.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(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.String scopeName)
void
addMapping(AnnotationToScopeMapping annotationToScopeMapping)
protected java.lang.String
deduceScopeName(AnnotationMetadata classMetadata)
protected java.lang.String
deduceScopeName(MethodMetadata factoryMethodMetadata)
java.util.List<AnnotationToScopeMapping>
getAnnotationToScopeMappings()
int
getOrder()
void
postProcessBeanFactory(ConfigurableListableBeanFactory clbf)
void
setAnnotationToScopeMappings(java.util.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 java.lang.String deduceScopeName(MethodMetadata factoryMethodMetadata)
-
deduceScopeName
protected java.lang.String deduceScopeName(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)
-
setOrder
public void setOrder(int order)
-
-