org.springframework.aop.IntroductionAdvisor implementation
that by default applies to any class.
| Modifier and Type | Field and Description |
|---|---|
| private final Advice | |
| private final Set | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | DefaultIntroductionAdvisor(Advice
the Advice to apply (may implement the
advice)org. interface)Create a DefaultIntroductionAdvisor for the given advice. |
| public | DefaultIntroductionAdvisor(Advice
the Advice to apply advice, IntroductionInfo the IntroductionInfo that describes
the interface to introduce (may be introductionInfo)null)Create a DefaultIntroductionAdvisor for the given advice. |
| public | DefaultIntroductionAdvisor(DynamicIntroductionAdvice
the Advice to apply advice, Class<?> the interface to introduce ifc)Create a DefaultIntroductionAdvisor for the given advice. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addInterface(Class<?>
the interface to introduce ifc)Add the specified interface to the list of interfaces to introduce. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public Advice | getAdvice()
Implements org. |
| public ClassFilter | getClassFilter()
Implements org. |
| public Class | getInterfaces()
Implements org. |
| public int | |
| public int | |
| public boolean | matches(Class<?>
the candidate target class clazz)Implements org. |
| public void | |
| public String | |
| public void | validateInterfaces()
Implements org. |
| advice | back to summary |
|---|---|
| private final Advice advice | |
| interfaces | back to summary |
|---|---|
| private final Set<Class<?>> interfaces | |
| order | back to summary |
|---|---|
| private int order | |
| DefaultIntroductionAdvisor | back to summary |
|---|---|
| public DefaultIntroductionAdvisor(Advice advice) Create a DefaultIntroductionAdvisor for the given advice.
| |
| DefaultIntroductionAdvisor | back to summary |
|---|---|
| public DefaultIntroductionAdvisor(Advice advice, IntroductionInfo introductionInfo) Create a DefaultIntroductionAdvisor for the given advice.
| |
| DefaultIntroductionAdvisor | back to summary |
|---|---|
| public DefaultIntroductionAdvisor(DynamicIntroductionAdvice advice, Class<?> ifc) Create a DefaultIntroductionAdvisor for the given advice.
| |
| addInterface | back to summary |
|---|---|
| public void addInterface(Class<?> ifc) Add the specified interface to the list of interfaces to introduce.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| 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. | |
| getOrder | back to summary |
|---|---|
| public int getOrder() Implements org. Doc from org. Get the order value of this object. Higher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet Same order values will result in arbitrary sort positions for the affected objects.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| matches | back to summary |
|---|---|
| public boolean matches(Class<?> clazz) Implements org. Doc from org. Should the pointcut apply to the given interface or target class? | |
| setOrder | back to summary |
|---|---|
| public void setOrder(int order) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| 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.
| |