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 Object
implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapping(Class<? extends Annotation> annotation, String scopeName) voidaddMapping(String annotationName, String scopeName) voidaddMapping(AnnotationToScopeMapping annotationToScopeMapping) protected StringdeduceScopeName(org.springframework.core.type.AnnotationMetadata classMetadata) protected StringdeduceScopeName(org.springframework.core.type.MethodMetadata factoryMethodMetadata) intgetOrder()voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory clbf) voidsetAnnotationToScopeMappings(List<AnnotationToScopeMapping> annotationToScopeMappings) voidsetOrder(int order)
-
Constructor Details
-
CustomScopeAnnotationConfigurer
public CustomScopeAnnotationConfigurer()
-
-
Method Details
-
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 String deduceScopeName(org.springframework.core.type.MethodMetadata factoryMethodMetadata) -
deduceScopeName
-
addMapping
-
addMapping
- Throws:
ClassNotFoundException
-
addMapping
-
getAnnotationToScopeMappings
-
setAnnotationToScopeMappings
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-