public class CustomScopeAnnotationConfigurer
extends java.lang.Object
implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered
Constructor and Description |
---|
CustomScopeAnnotationConfigurer() |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(AnnotationToScopeMapping annotationToScopeMapping) |
void |
addMapping(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String scopeName) |
protected java.lang.String |
deduceScopeName(org.springframework.core.type.AnnotationMetadata classMetadata) |
protected java.lang.String |
deduceScopeName(org.springframework.core.type.MethodMetadata factoryMethodMetadata) |
java.util.List<AnnotationToScopeMapping> |
getAnnotationToScopeMappings() |
int |
getOrder() |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory clbf) |
void |
setAnnotationToScopeMappings(java.util.List<AnnotationToScopeMapping> annotationToScopeMappings) |
void |
setOrder(int order) |
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory clbf) throws org.springframework.beans.BeansException
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
org.springframework.beans.BeansException
protected java.lang.String deduceScopeName(org.springframework.core.type.MethodMetadata factoryMethodMetadata)
protected java.lang.String deduceScopeName(org.springframework.core.type.AnnotationMetadata classMetadata)
public void addMapping(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.String scopeName)
public void addMapping(AnnotationToScopeMapping annotationToScopeMapping)
public java.util.List<AnnotationToScopeMapping> getAnnotationToScopeMappings()
public void setAnnotationToScopeMappings(java.util.List<AnnotationToScopeMapping> annotationToScopeMappings)
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setOrder(int order)