public class AdvisorComponentDefinition extends AbstractComponentDefinition
ComponentDefinition
that bridges the gap between the advisor bean definition configured
by the <aop:advisor>
tag and the component definition
infrastructure.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
advisorBeanName |
private BeanDefinition |
advisorDefinition |
private BeanDefinition[] |
beanDefinitions |
private BeanReference[] |
beanReferences |
private java.lang.String |
description |
Constructor and Description |
---|
AdvisorComponentDefinition(java.lang.String advisorBeanName,
BeanDefinition advisorDefinition) |
AdvisorComponentDefinition(java.lang.String advisorBeanName,
BeanDefinition advisorDefinition,
BeanDefinition pointcutDefinition) |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
buildDescription(BeanReference adviceReference,
BeanDefinition pointcutDefinition) |
private java.lang.String |
buildDescription(BeanReference adviceReference,
BeanReference pointcutReference) |
BeanDefinition[] |
getBeanDefinitions()
Returns an empty array.
|
BeanReference[] |
getBeanReferences()
Returns an empty array.
|
java.lang.String |
getDescription()
Delegates to
ComponentDefinition.getName() . |
java.lang.String |
getName()
Get the user-visible name of this
ComponentDefinition . |
java.lang.Object |
getSource()
Return the configuration source
Object for this metadata element
(may be null ). |
private void |
unwrapDefinitions(BeanDefinition advisorDefinition,
BeanDefinition pointcutDefinition) |
getInnerBeanDefinitions, toString
private final java.lang.String advisorBeanName
private final BeanDefinition advisorDefinition
private java.lang.String description
private BeanReference[] beanReferences
private BeanDefinition[] beanDefinitions
public AdvisorComponentDefinition(java.lang.String advisorBeanName, BeanDefinition advisorDefinition)
public AdvisorComponentDefinition(java.lang.String advisorBeanName, BeanDefinition advisorDefinition, BeanDefinition pointcutDefinition)
private void unwrapDefinitions(BeanDefinition advisorDefinition, BeanDefinition pointcutDefinition)
private java.lang.String buildDescription(BeanReference adviceReference, BeanDefinition pointcutDefinition)
private java.lang.String buildDescription(BeanReference adviceReference, BeanReference pointcutReference)
public java.lang.String getName()
ComponentDefinition
ComponentDefinition
.
This should link back directly to the corresponding configuration data for this component in a given context.
public java.lang.String getDescription()
AbstractComponentDefinition
ComponentDefinition.getName()
.getDescription
in interface ComponentDefinition
getDescription
in class AbstractComponentDefinition
public BeanDefinition[] getBeanDefinitions()
AbstractComponentDefinition
getBeanDefinitions
in interface ComponentDefinition
getBeanDefinitions
in class AbstractComponentDefinition
public BeanReference[] getBeanReferences()
AbstractComponentDefinition
getBeanReferences
in interface ComponentDefinition
getBeanReferences
in class AbstractComponentDefinition
public java.lang.Object getSource()
BeanMetadataElement
Object
for this metadata element
(may be null
).