|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aop.advice.AdviceFactory
public class AdviceFactory
Comment
| Constructor Summary | |
|---|---|
AdviceFactory(AspectDefinition aspect,
String adviceName)
Creates a factory that generates advice interceptors. |
|
AdviceFactory(AspectDefinition aspect,
String adviceName,
AdviceType type)
Creates a factory that generates advice interceptors. |
|
| Method Summary | |
|---|---|
Interceptor |
create(Advisor advisor,
Joinpoint joinpoint)
Creates an interceptor that represents this advice and that delegates execution to this advice. |
boolean |
equals(Object obj)
|
String |
getAdvice()
Returns the name of the advice method. |
AspectDefinition |
getAspect()
Returns the definition of the aspect that contains this advice method. |
String |
getName()
Returns the name that identifies this interceptor/advice. |
AdviceType |
getType()
Returns the type of the advice. |
boolean |
isDeployed()
Indicates whether this interceptor/advice is deployed. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdviceFactory(AspectDefinition aspect,
String adviceName)
default type.
aspect - definition of the aspect that contains the advice methodadviceName - name of the advice method
public AdviceFactory(AspectDefinition aspect,
String adviceName,
AdviceType type)
aspect - definition of the aspect that contains the advice methodadviceName - name of the advice methodtype - the type of the advice| Method Detail |
|---|
public AspectDefinition getAspect()
getAspect in interface InterceptorFactorypublic String getAdvice()
getAdvice in interface InterceptorFactorypublic AdviceType getType()
getType in interface InterceptorFactorypublic boolean isDeployed()
InterceptorFactory
isDeployed in interface InterceptorFactory
public Interceptor create(Advisor advisor,
Joinpoint joinpoint)
InterceptorFactory
create in interface InterceptorFactoryadvisor - advisor, indicates an instance or class where the interception
will occurjoinpoint - the joinpoint that will be intercepted
public String getName()
InterceptorFactory
getName in interface InterceptorFactorypublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||