java.lang.Object | |
↳ | org.springframework.aop.support.DefaultIntroductionAdvisor |
Simple IntroductionAdvisor
implementation
that by default applies to any class.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.core.Ordered
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.aop.ClassFilter
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a DefaultIntroductionAdvisor for the given advice.
| |||||||||||
Create a DefaultIntroductionAdvisor for the given advice.
| |||||||||||
Create a DefaultIntroductionAdvisor for the given advice.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add the specified interface to the list of interfaces to introduce.
| |||||||||||
Return the advice part of this aspect.
| |||||||||||
Return the filter determining which target classes this introduction
should apply to.
| |||||||||||
Return the additional interfaces introduced by this Advisor or Advice.
| |||||||||||
Return the order value of this object, with a
higher value meaning greater in terms of sorting.
| |||||||||||
Return whether this advice is associated with a particular instance
(for example, creating a mixin) or shared with all instances of
the advised class obtained from the same Spring bean factory.
| |||||||||||
Can the advised interfaces be implemented by the introduction advice?
Invoked before adding an IntroductionAdvisor.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.aop.Advisor
| |||||||||||
From interface
org.springframework.aop.ClassFilter
| |||||||||||
From interface
org.springframework.aop.IntroductionAdvisor
| |||||||||||
From interface
org.springframework.aop.IntroductionInfo
| |||||||||||
From interface
org.springframework.core.Ordered
|
Create a DefaultIntroductionAdvisor for the given advice.
advice | the Advice to apply (may implement the
IntroductionInfo interface) |
---|
Create a DefaultIntroductionAdvisor for the given advice.
advice | the Advice to apply |
---|---|
introductionInfo | the IntroductionInfo that describes
the interface to introduce (may be null )
|
Create a DefaultIntroductionAdvisor for the given advice.
advice | the Advice to apply |
---|---|
intf | the interface to introduce |
Add the specified interface to the list of interfaces to introduce.
intf | the interface to introduce |
---|
Return the advice part of this aspect. An advice may be an interceptor, a before advice, a throws advice, etc.
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.
Return the additional interfaces introduced by this Advisor or Advice.
Return the order value of this object, with a higher value meaning greater in terms of sorting.
Normally starting with 0, with Integer.MAX_VALUE
indicating the greatest value. Same order values will result
in arbitrary positions for the affected objects.
Higher values can be interpreted as lower priority. As a consequence, the object with the lowest value has highest priority (somewhat analogous to Servlet "load-on-startup" values).
Return whether this advice is associated with a particular instance (for example, creating a mixin) or shared with all instances of the advised class obtained from the same Spring bean factory.
Note that this method is not currently used by the framework.
Typical Advisor implementations always return true
.
Use singleton/prototype bean definitions or appropriate programmatic
proxy creation to ensure that Advisors have the correct lifecycle model.
Can the advised interfaces be implemented by the introduction advice? Invoked before adding an IntroductionAdvisor.
IllegalArgumentException |
---|