Package org.springframework.aop.config
Class AdvisorComponentDefinition
- java.lang.Object
- org.springframework.beans.factory.parsing.AbstractComponentDefinition
- org.springframework.aop.config.AdvisorComponentDefinition
- All Implemented Interfaces:
BeanMetadataElement,ComponentDefinition
public class AdvisorComponentDefinition extends AbstractComponentDefinition
ComponentDefinitionthat bridges the gap between the advisor bean definition configured by the<aop:advisor>tag and the component definition infrastructure.- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller
Constructor Summary
Constructors Constructor Description AdvisorComponentDefinition(String advisorBeanName, BeanDefinition advisorDefinition)AdvisorComponentDefinition(String advisorBeanName, BeanDefinition advisorDefinition, BeanDefinition pointcutDefinition)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanDefinition[]getBeanDefinitions()Returns an empty array.BeanReference[]getBeanReferences()Returns an empty array.StringgetDescription()Delegates toComponentDefinition.getName().StringgetName()Get the user-visible name of thisComponentDefinition.ObjectgetSource()Return the configuration sourceObjectfor this metadata element (may benull).Methods inherited from class org.springframework.beans.factory.parsing.AbstractComponentDefinition
getInnerBeanDefinitions, toString
Constructor Detail
AdvisorComponentDefinition
public AdvisorComponentDefinition(String advisorBeanName, BeanDefinition advisorDefinition)
AdvisorComponentDefinition
public AdvisorComponentDefinition(String advisorBeanName, BeanDefinition advisorDefinition, BeanDefinition pointcutDefinition)
Method Detail
getName
public String getName()
Description copied from interface:ComponentDefinitionGet the user-visible name of thisComponentDefinition.This should link back directly to the corresponding configuration data for this component in a given context.
getDescription
public String getDescription()
Description copied from class:AbstractComponentDefinitionDelegates toComponentDefinition.getName().- Specified by:
getDescriptionin interfaceComponentDefinition- Overrides:
getDescriptionin classAbstractComponentDefinition
getBeanDefinitions
public BeanDefinition[] getBeanDefinitions()
Description copied from class:AbstractComponentDefinitionReturns an empty array.- Specified by:
getBeanDefinitionsin interfaceComponentDefinition- Overrides:
getBeanDefinitionsin classAbstractComponentDefinition- Returns:
- the array of BeanDefinitions, or an empty array if none
getBeanReferences
public BeanReference[] getBeanReferences()
Description copied from class:AbstractComponentDefinitionReturns an empty array.- Specified by:
getBeanReferencesin interfaceComponentDefinition- Overrides:
getBeanReferencesin classAbstractComponentDefinition- Returns:
- the array of BeanReferences, or an empty array if none
getSource
public Object getSource()
Description copied from interface:BeanMetadataElementReturn the configuration sourceObjectfor this metadata element (may benull).