org.springframework.config.java.listener.aop
Class AspectJAdviceConfigurationListener
java.lang.Object
org.springframework.config.java.listener.ConfigurationListenerSupport
org.springframework.config.java.listener.aop.AbstractAopConfigurationListener
org.springframework.config.java.listener.aop.AspectJAdviceConfigurationListener
- All Implemented Interfaces:
- ConfigurationListener
public class AspectJAdviceConfigurationListener
- extends AbstractAopConfigurationListener
Configuration listener that processes AspectJ aspects.
- Author:
- Rod Johnson
- See Also:
AspectJAdvisorFactory
Method Summary |
int |
configurationClass(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory,
java.lang.String configurerBeanName,
java.lang.Class configurerClass)
Check whether inheritance hierarchy is consistent |
protected java.lang.String |
getConfigurerBeanName(java.lang.Class configClass)
Get the bean name of this configurer 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 aspectJAdviceMethod)
React to the encountering of a non bean definition method on the
configurer class. |
boolean |
understands(java.lang.Class<?> configurerClass)
Does this configurer understand the given configuration class, which
isn't a regular configuration class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AspectJAdviceConfigurationListener
public AspectJAdviceConfigurationListener()
understands
public boolean understands(java.lang.Class<?> configurerClass)
- Description copied from interface:
ConfigurationListener
- Does this configurer understand the given configuration class, which
isn't a regular configuration class.
- Specified by:
understands
in interface ConfigurationListener
- Overrides:
understands
in class ConfigurationListenerSupport
- Parameters:
configurerClass
- candidate configuration class
- Returns:
- whether this class is understood by this configurer
configurationClass
public int configurationClass(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory,
java.lang.String configurerBeanName,
java.lang.Class configurerClass)
- Check whether inheritance hierarchy is consistent
- Specified by:
configurationClass
in interface ConfigurationListener
- Overrides:
configurationClass
in class ConfigurationListenerSupport
- Returns:
- number of bean definitions created
otherMethod
public 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 aspectJAdviceMethod)
- Description copied from interface:
ConfigurationListener
- React to the encountering of a non bean definition method on the
configurer class. Non bean definition methods (with Bean annotations) may
be significant to some configuration classes.
- Specified by:
otherMethod
in interface ConfigurationListener
- Overrides:
otherMethod
in class ConfigurationListenerSupport
- Parameters:
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 classaspectJAdviceMethod
- method on configurer class
- Returns:
- number of newly bean definitions created
getConfigurerBeanName
protected java.lang.String getConfigurerBeanName(java.lang.Class configClass)
- Get the bean name of this configurer class.
- Parameters:
configClass
-
- Returns:
Copyright © 2005-2007 Spring Framework. All Rights Reserved.