Top Description Fields Constructors Methods
org.springframework.aop.config

public Class AdvisorComponentDefinition

extends AbstractComponentDefinition
Class Inheritance
Imports
org.springframework.beans.MutablePropertyValues, org.springframework.beans.factory.config.BeanDefinition, .BeanReference, org.springframework.beans.factory.parsing.AbstractComponentDefinition, org.springframework.lang.Nullable, org.springframework.util.Assert

org.springframework.beans.factory.parsing.ComponentDefinition that bridges the gap between the advisor bean definition configured by the <aop:advisor> tag and the component definition infrastructure.
Authors
Rob Harrop, Juergen Hoeller
Since
2.0

Field Summary

Modifier and TypeField and Description
private final String
private final BeanDefinition
private final BeanDefinition[]
private final BeanReference[]
private final String

Constructor Summary

AccessConstructor and Description
public
AdvisorComponentDefinition(String advisorBeanName, BeanDefinition advisorDefinition)

public
AdvisorComponentDefinition(String advisorBeanName, BeanDefinition advisorDefinition, BeanDefinition pointcutDefinition)

Method Summary

Modifier and TypeMethod and Description
private String
buildDescription(BeanReference adviceReference, BeanDefinition pointcutDefinition)

private String
buildDescription(BeanReference adviceReference, BeanReference pointcutReference)

public BeanDefinition[]
public BeanReference[]
public String
public String
getName()

Implements org.springframework.beans.factory.parsing.ComponentDefinition.getName.

Get the user-visible name of this ComponentDefinition.

public Object
getSource()

Overrides default org.springframework.beans.BeanMetadataElement.getSource.

Return the configuration source Object for this metadata element (may be null).

Inherited from org.springframework.beans.factory.parsing.AbstractComponentDefinition:
getInnerBeanDefinitionstoString

Field Detail

advisorBeanNameback to summary
private final String advisorBeanName
advisorDefinitionback to summary
private final BeanDefinition advisorDefinition
beanDefinitionsback to summary
private final BeanDefinition[] beanDefinitions
beanReferencesback to summary
private final BeanReference[] beanReferences
descriptionback to summary
private final String description

Constructor Detail

AdvisorComponentDefinitionback to summary
public AdvisorComponentDefinition(String advisorBeanName, BeanDefinition advisorDefinition)
AdvisorComponentDefinitionback to summary
public AdvisorComponentDefinition(String advisorBeanName, BeanDefinition advisorDefinition, BeanDefinition pointcutDefinition)

Method Detail

buildDescriptionback to summary
private String buildDescription(BeanReference adviceReference, BeanDefinition pointcutDefinition)
buildDescriptionback to summary
private String buildDescription(BeanReference adviceReference, BeanReference pointcutReference)
getBeanDefinitionsback to summary
public BeanDefinition[] getBeanDefinitions()

Overrides org.springframework.beans.factory.parsing.AbstractComponentDefinition.getBeanDefinitions.

Implements org.springframework.beans.factory.parsing.ComponentDefinition.getBeanDefinitions.

Doc from org.springframework.beans.factory.parsing.AbstractComponentDefinition.getBeanDefinitions.

Returns an empty array.

Returns:BeanDefinition[]

Doc from org.springframework.beans.factory.parsing.ComponentDefinition.getBeanDefinitions.

the array of BeanDefinitions, or an empty array if none

Annotations
@Override
getBeanReferencesback to summary
public BeanReference[] getBeanReferences()

Overrides org.springframework.beans.factory.parsing.AbstractComponentDefinition.getBeanReferences.

Implements org.springframework.beans.factory.parsing.ComponentDefinition.getBeanReferences.

Doc from org.springframework.beans.factory.parsing.AbstractComponentDefinition.getBeanReferences.

Returns an empty array.

Returns:BeanReference[]

Doc from org.springframework.beans.factory.parsing.ComponentDefinition.getBeanReferences.

the array of BeanReferences, or an empty array if none

Annotations
@Override
getDescriptionback to summary
public String getDescription()

Overrides org.springframework.beans.factory.parsing.AbstractComponentDefinition.getDescription.

Implements org.springframework.beans.factory.parsing.ComponentDefinition.getDescription.

Doc from org.springframework.beans.factory.parsing.AbstractComponentDefinition.getDescription.

Delegates to getName.

Annotations
@Override
getNameback to summary
public String getName()

Implements org.springframework.beans.factory.parsing.ComponentDefinition.getName.

Doc from org.springframework.beans.factory.parsing.ComponentDefinition.getName.

Get the user-visible name of this ComponentDefinition.

This should link back directly to the corresponding configuration data for this component in a given context.

Annotations
@Override
getSourceback to summary
public Object getSource()

Overrides default org.springframework.beans.BeanMetadataElement.getSource.

Doc from org.springframework.beans.BeanMetadataElement.getSource.

Return the configuration source Object for this metadata element (may be null).

Annotations
@Override
@Nullable