| Modifier and Type | Field and Description |
|---|---|
| private final Advice | |
| private final Class | |
| private final ClassFilter |
| Access | Constructor and Description |
|---|---|
| public | DeclareParentsAdvisor(Class<?>
static field defining the introduction interfaceType, String type pattern the introduction is restricted to typePattern, Class<?> the default implementation class defaultImpl)Create a new advisor for this DeclareParents field. |
| public | DeclareParentsAdvisor(Class<?>
static field defining the introduction interfaceType, String type pattern the introduction is restricted to typePattern, Object the delegate implementation object delegateRef)Create a new advisor for this DeclareParents field. |
| private | DeclareParentsAdvisor(Class<?>
static field defining the introduction interfaceType, String type pattern the introduction is restricted to typePattern, IntroductionInterceptor the delegation advice as interceptor)IntroductionInterceptorPrivate constructor to share common code between impl-based delegate and reference-based delegate (cannot use method such as init() to share common code, due the use of final fields). |
| Modifier and Type | Method and Description |
|---|---|
| public Advice | getAdvice()
Implements org. |
| public ClassFilter | getClassFilter()
Implements org. |
| public Class | getInterfaces()
Implements org. |
| public void | validateInterfaces()
Implements org. |
| advice | back to summary |
|---|---|
| private final Advice advice | |
| introducedInterface | back to summary |
|---|---|
| private final Class<?> introducedInterface | |
| typePatternClassFilter | back to summary |
|---|---|
| private final ClassFilter typePatternClassFilter | |
| DeclareParentsAdvisor | back to summary |
|---|---|
| public DeclareParentsAdvisor(Class<?> interfaceType, String typePattern, Class<?> defaultImpl) Create a new advisor for this DeclareParents field. | |
| DeclareParentsAdvisor | back to summary |
|---|---|
| public DeclareParentsAdvisor(Class<?> interfaceType, String typePattern, Object delegateRef) Create a new advisor for this DeclareParents field. | |
| DeclareParentsAdvisor | back to summary |
|---|---|
| private DeclareParentsAdvisor(Class<?> interfaceType, String typePattern, IntroductionInterceptor interceptor) Private constructor to share common code between impl-based delegate and reference-based delegate (cannot use method such as init() to share common code, due the use of final fields).
| |
| getAdvice | back to summary |
|---|---|
| public Advice getAdvice() Implements org. Doc from org. Return the advice part of this aspect. An advice may be an interceptor, a before advice, a throws advice, etc. | |
| getClassFilter | back to summary |
|---|---|
| public ClassFilter getClassFilter() Implements org. Doc from org. Return 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.
| |
| getInterfaces | back to summary |
|---|---|
| public Class Implements org. Doc from org. Return the additional interfaces introduced by this Advisor or Advice. | |
| validateInterfaces | back to summary |
|---|---|
| public void validateInterfaces() throws IllegalArgumentException Implements org. Doc from org. Can the advised interfaces be implemented by the introduction advice? Invoked before adding an IntroductionAdvisor.
| |