org.springframework.aop.config
Class AdvisorComponentDefinition

java.lang.Object
  extended by org.springframework.beans.factory.parsing.AbstractComponentDefinition
      extended by org.springframework.aop.config.AdvisorComponentDefinition
All Implemented Interfaces:
BeanMetadataElement, ComponentDefinition

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.

Since:
2.0
Author:
Rob Harrop, Juergen Hoeller

Field Summary
private  java.lang.String advisorBeanName
           
private  BeanDefinition advisorDefinition
           
private  BeanDefinition[] beanDefinitions
           
private  BeanReference[] beanReferences
           
private  java.lang.String description
           
 
Constructor Summary
AdvisorComponentDefinition(java.lang.String advisorBeanName, BeanDefinition advisorDefinition)
           
AdvisorComponentDefinition(java.lang.String advisorBeanName, BeanDefinition advisorDefinition, BeanDefinition pointcutDefinition)
           
 
Method Summary
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)
           
 
Methods inherited from class org.springframework.beans.factory.parsing.AbstractComponentDefinition
getInnerBeanDefinitions, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

advisorBeanName

private final java.lang.String advisorBeanName

advisorDefinition

private final BeanDefinition advisorDefinition

description

private java.lang.String description

beanReferences

private BeanReference[] beanReferences

beanDefinitions

private BeanDefinition[] beanDefinitions
Constructor Detail

AdvisorComponentDefinition

public AdvisorComponentDefinition(java.lang.String advisorBeanName,
                                  BeanDefinition advisorDefinition)

AdvisorComponentDefinition

public AdvisorComponentDefinition(java.lang.String advisorBeanName,
                                  BeanDefinition advisorDefinition,
                                  BeanDefinition pointcutDefinition)
Method Detail

unwrapDefinitions

private void unwrapDefinitions(BeanDefinition advisorDefinition,
                               BeanDefinition pointcutDefinition)

buildDescription

private java.lang.String buildDescription(BeanReference adviceReference,
                                          BeanDefinition pointcutDefinition)

buildDescription

private java.lang.String buildDescription(BeanReference adviceReference,
                                          BeanReference pointcutReference)

getName

public java.lang.String getName()
Description copied from interface: ComponentDefinition
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.


getDescription

public java.lang.String getDescription()
Description copied from class: AbstractComponentDefinition
Delegates to ComponentDefinition.getName().

Specified by:
getDescription in interface ComponentDefinition
Overrides:
getDescription in class AbstractComponentDefinition

getBeanDefinitions

public BeanDefinition[] getBeanDefinitions()
Description copied from class: AbstractComponentDefinition
Returns an empty array.

Specified by:
getBeanDefinitions in interface ComponentDefinition
Overrides:
getBeanDefinitions in class AbstractComponentDefinition
Returns:
the array of BeanDefinitions, or an empty array if none

getBeanReferences

public BeanReference[] getBeanReferences()
Description copied from class: AbstractComponentDefinition
Returns an empty array.

Specified by:
getBeanReferences in interface ComponentDefinition
Overrides:
getBeanReferences in class AbstractComponentDefinition
Returns:
the array of BeanReferences, or an empty array if none

getSource

public java.lang.Object getSource()
Description copied from interface: BeanMetadataElement
Return the configuration source Object for this metadata element (may be null).