Package org.springframework.aop.aspectj
Class DeclareParentsAdvisor
java.lang.Object
org.springframework.aop.aspectj.DeclareParentsAdvisor
- All Implemented Interfaces:
- Advisor,- IntroductionAdvisor,- IntroductionInfo
Introduction advisor delegating to the given object.
 Implements AspectJ annotation-style behavior for the DeclareParents annotation.
- Since:
- 2.0
- Author:
- Rod Johnson, Ramnivas Laddad
- 
Field SummaryFields inherited from interface org.springframework.aop.AdvisorEMPTY_ADVICE
- 
Constructor SummaryConstructorsConstructorDescriptionDeclareParentsAdvisor(Class<?> interfaceType, String typePattern, Class<?> defaultImpl) Create a new advisor for this DeclareParents field.DeclareParentsAdvisor(Class<?> interfaceType, String typePattern, Object delegateRef) Create a new advisor for this DeclareParents field.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the advice part of this aspect.Return the filter determining which target classes this introduction should apply to.Class<?>[]Return the additional interfaces introduced by this Advisor or Advice.voidCan the advised interfaces be implemented by the introduction advice? Invoked before adding an IntroductionAdvisor.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.aop.AdvisorisPerInstance
- 
Constructor Details- 
DeclareParentsAdvisorCreate 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
 
- 
DeclareParentsAdvisorCreate 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- 
getClassFilterDescription copied from interface:IntroductionAdvisorReturn the filter determining which target classes this introduction should apply to.This represents the class part of a pointcut. Note that method matching doesn't make sense to introductions. - Specified by:
- getClassFilterin interface- IntroductionAdvisor
- Returns:
- the class filter
 
- 
validateInterfacesDescription copied from interface:IntroductionAdvisorCan the advised interfaces be implemented by the introduction advice? Invoked before adding an IntroductionAdvisor.- Specified by:
- validateInterfacesin interface- IntroductionAdvisor
- Throws:
- IllegalArgumentException- if the advised interfaces can't be implemented by the introduction advice
 
- 
getAdviceDescription copied from interface:AdvisorReturn the advice part of this aspect. An advice may be an interceptor, a before advice, a throws advice, etc.
- 
getInterfacesDescription copied from interface:IntroductionInfoReturn the additional interfaces introduced by this Advisor or Advice.- Specified by:
- getInterfacesin interface- IntroductionInfo
- Returns:
- the introduced interfaces
 
 
-