|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationListener
SPI interface that allows extension of a ConfigurationProcessor. ConfigurationMethodListener instances are notified about the processing of configuration classes and the processing of methods they contain. Implementations should be thread safe.
Nested Class Summary | |
---|---|
static class |
ConfigurationListener.BeanDefinitionRegistration
Class to hold BeanDefinition, name and any other information, to allow configuration listeners to customize the registration, change its name, etc. |
Method Summary | |
---|---|
int |
beanCreationMethod(ConfigurationListener.BeanDefinitionRegistration beanDefinitionRegistration,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory,
java.lang.String configurerBeanName,
java.lang.Class<?> configurerClass,
java.lang.reflect.Method m,
Bean beanAnnotation)
React to the BeanDefinition and possibly customize it or change its name |
int |
configurationClass(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory,
java.lang.String configurerBeanName,
java.lang.Class<?> configurerClass)
React to the given configuration class. |
int |
otherMethod(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory,
java.lang.String configurerBeanName,
java.lang.Class<?> configurerClass,
java.lang.reflect.Method m)
React to the encountering of a non bean definition method on the configurer class. |
boolean |
processBeanMethodReturnValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory,
java.lang.Object originallyCreatedBean,
java.lang.reflect.Method method,
org.springframework.aop.framework.ProxyFactory pf)
Help to process the return value of a bean definition. |
boolean |
understands(java.lang.Class<?> configurerClass)
Does this configurer understand the given configuration class, which isn't a regular configuration class. |
Method Detail |
---|
boolean understands(java.lang.Class<?> configurerClass)
configurerClass
- candidate configuration class
int configurationClass(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory, java.lang.String configurerBeanName, java.lang.Class<?> configurerClass)
beanFactory
- childBeanFactory
- configurerBeanName
- configurerClass
-
int beanCreationMethod(ConfigurationListener.BeanDefinitionRegistration beanDefinitionRegistration, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory, java.lang.String configurerBeanName, java.lang.Class<?> configurerClass, java.lang.reflect.Method m, Bean beanAnnotation)
beanDefinitionRegistration
- bean definition registration
informationbeanFactory
- factory owning the configuration class. This method
will be called before beans are instantiated, so other objects may not be
available.childBeanFactory
- child bean factory available for internal use,
such as for registering infrastructural beansconfigurerBeanName
- bean name of the configurer classconfigurerClass
- configurer classm
- configuration methodbeanAnnotation
- bean annotation on the configuration method, which
will not be null.
int otherMethod(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory, java.lang.String configurerBeanName, java.lang.Class<?> configurerClass, java.lang.reflect.Method m)
beanFactory
- factory owning the configuration class. This method
will be called before beans are instantiated, so other objects may not be
available.childBeanFactory
- child bean factory available for internal use,
such as for registering infrastructural beansconfigurerBeanName
- bean name of the configurer classconfigurerClass
- configurer classm
- method on configurer class
boolean processBeanMethodReturnValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory, java.lang.Object originallyCreatedBean, java.lang.reflect.Method method, org.springframework.aop.framework.ProxyFactory pf)
originallyCreatedBean
- method
- pf
- simply don't modify it if necessary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |