|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.aop.aspectj.annotation.InstantiationModelAwarePointcutAdvisorImpl
class InstantiationModelAwarePointcutAdvisorImpl
Internal implementation of AspectJPointcutAdvisor. Note that there will be one instance of this advisor for each target method.
| Field Summary |
|---|
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
InstantiationModelAwarePointcutAdvisorImpl(AspectJAdvisorFactory af,
AspectJExpressionPointcut ajexp,
MetadataAwareAspectInstanceFactory aif,
Method method,
int declarationOrderInAspect,
String aspectName)
|
|
| Method Summary | |
|---|---|
Advice |
getAdvice()
Lazily instantiate advice if necessary. |
MetadataAwareAspectInstanceFactory |
getAspectInstanceFactory()
|
AspectMetadata |
getAspectMetadata()
Return the AspectJ AspectMetadata for this advisor. |
String |
getAspectName()
The name of the aspect (bean) in which the advice was declared. |
int |
getDeclarationOrder()
The declaration order of the advice member within the aspect. |
AspectJExpressionPointcut |
getDeclaredPointcut()
|
int |
getOrder()
Return the order value of this object, with a higher value meaning greater in terms of sorting. |
Pointcut |
getPointcut()
The pointcut for Spring AOP to use. |
boolean |
isAdviceInstantiated()
Return whether this advisor has already instantiated its advice. |
boolean |
isAfterAdvice()
Return whether this is an after advice. |
boolean |
isBeforeAdvice()
Return whether this is a before advice. |
boolean |
isLazy()
Return whether this advisor is lazily initializing its underlying advice. |
boolean |
isPerInstance()
This is only of interest for Spring AOP: AspectJ instantiation semantics are much richer. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InstantiationModelAwarePointcutAdvisorImpl(AspectJAdvisorFactory af,
AspectJExpressionPointcut ajexp,
MetadataAwareAspectInstanceFactory aif,
Method method,
int declarationOrderInAspect,
String aspectName)
| Method Detail |
|---|
public Pointcut getPointcut()
getPointcut in interface PointcutAdvisorpublic boolean isPerInstance()
true
means here is that the aspect is not a SINGLETON.
isPerInstance in interface Advisorpublic AspectMetadata getAspectMetadata()
public Advice getAdvice()
getAdvice in interface AdvisorMethodInterceptor,
BeforeAdvice,
ThrowsAdvice,
AfterReturningAdvicepublic boolean isLazy()
InstantiationModelAwarePointcutAdvisor
isLazy in interface InstantiationModelAwarePointcutAdvisorpublic boolean isAdviceInstantiated()
InstantiationModelAwarePointcutAdvisor
isAdviceInstantiated in interface InstantiationModelAwarePointcutAdvisorpublic MetadataAwareAspectInstanceFactory getAspectInstanceFactory()
public AspectJExpressionPointcut getDeclaredPointcut()
public int getOrder()
OrderedNormally starting with 0 or 1, with Ordered.LOWEST_PRECEDENCE
indicating greatest. Same order values will result in arbitrary
positions for the affected objects.
Higher value can be interpreted as lower priority, consequently the first object has highest priority (somewhat analogous to Servlet "load-on-startup" values).
Note that order values below 0 are reserved for framework purposes. Application-specified values should always be 0 or greater, with only framework components (internal or third-party) supposed to use lower values.
getOrder in interface OrderedOrdered.LOWEST_PRECEDENCEpublic String getAspectName()
AspectJPrecedenceInformation
getAspectName in interface AspectJPrecedenceInformationpublic int getDeclarationOrder()
AspectJPrecedenceInformation
getDeclarationOrder in interface AspectJPrecedenceInformationpublic boolean isBeforeAdvice()
AspectJPrecedenceInformation
isBeforeAdvice in interface AspectJPrecedenceInformationpublic boolean isAfterAdvice()
AspectJPrecedenceInformation
isAfterAdvice in interface AspectJPrecedenceInformationpublic String toString()
toString in class Object
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||