Class DeclareParentsAdvisor

java.lang.Object
org.springframework.aop.aspectj.DeclareParentsAdvisor
All Implemented Interfaces:
Advisor, IntroductionAdvisor, IntroductionInfo

public class DeclareParentsAdvisor extends Object implements IntroductionAdvisor
Introduction advisor delegating to the given object. Implements AspectJ annotation-style behavior for the DeclareParents annotation.
Since:
2.0
Author:
Rod Johnson, Ramnivas Laddad
  • Constructor Details

    • DeclareParentsAdvisor

      public DeclareParentsAdvisor(Class<?> interfaceType, String typePattern, Class<?> defaultImpl)
      Create a new advisor for this DeclareParents field.
      Parameters:
      interfaceType - static field defining the introduction
      typePattern - type pattern the introduction is restricted to
      defaultImpl - the default implementation class
    • DeclareParentsAdvisor

      public DeclareParentsAdvisor(Class<?> interfaceType, String typePattern, Object delegateRef)
      Create a new advisor for this DeclareParents field.
      Parameters:
      interfaceType - static field defining the introduction
      typePattern - type pattern the introduction is restricted to
      delegateRef - the delegate implementation object
  • Method Details