|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.aop.advice.GeneratedAdvisorInterceptor
public class GeneratedAdvisorInterceptor
Special interceptor wrapping the interceptor factory, so that generated advisors have all the information they need about the contained advices for generating the invocation methods. If we are invoked upon dymamically we use vanilla invocations, i.e. the generated invocation code does not step in, so we generate the interceptor class as and when needed in our invoke() method. Old skool class advisors do not use this class
Constructor Summary | |
---|---|
GeneratedAdvisorInterceptor(InterceptorFactory factory,
GeneratedClassAdvisor advisor,
Joinpoint joinpoint)
|
|
GeneratedAdvisorInterceptor(InterceptorFactory factory,
GeneratedClassAdvisor advisor,
Joinpoint joinpoint,
String cflowString,
ASTCFlowExpression cflowExpr)
|
Method Summary | |
---|---|
Interceptor |
create(Advisor advisor,
Joinpoint joinpoint)
|
boolean |
equals(Object obj)
|
String |
getAdviceName()
|
AspectDefinition |
getAspect()
|
Object |
getAspect(Advisor advisor,
Joinpoint joinpoint)
Used to obtain aspects from the generated code at runtime for joinpoints/aspects requiring an instance advisor |
Object |
getAspect(Advisor advisor,
Joinpoint joinpoint,
boolean forCodeGeneration)
Also used as a convenience method to create aspect instances for the JoinPointGenerator in order to figure out what the class of the aspect should be when making the call from the generated joinpoint class. |
String |
getAspectClassName()
|
ASTCFlowExpression |
getCflowExpression()
|
String |
getCFlowString()
|
InterceptorFactory |
getDelegate()
|
String |
getName()
|
Object |
getPerInstanceAspect(Advisor advisor,
Joinpoint joinpoint,
InstanceAdvisor ia)
Used to obtain aspects from the generated code at runtime for joinpoints/aspects requiring an instance advisor |
String |
getRegisteredName()
|
Scope |
getScope()
|
Object |
invoke(Invocation invocation)
|
boolean |
isAfter()
|
boolean |
isAround()
|
boolean |
isAspectFactory()
|
boolean |
isBefore()
|
boolean |
isInterceptor()
|
boolean |
isThrowing()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeneratedAdvisorInterceptor(InterceptorFactory factory, GeneratedClassAdvisor advisor, Joinpoint joinpoint, String cflowString, ASTCFlowExpression cflowExpr)
public GeneratedAdvisorInterceptor(InterceptorFactory factory, GeneratedClassAdvisor advisor, Joinpoint joinpoint)
Method Detail |
---|
public Interceptor create(Advisor advisor, Joinpoint joinpoint)
public Object getAspect(Advisor advisor, Joinpoint joinpoint)
public Object getAspect(Advisor advisor, Joinpoint joinpoint, boolean forCodeGeneration)
public Object getPerInstanceAspect(Advisor advisor, Joinpoint joinpoint, InstanceAdvisor ia)
public boolean isAspectFactory()
public InterceptorFactory getDelegate()
public AspectDefinition getAspect()
public String getName()
getName
in interface Interceptor
public String getAspectClassName()
public boolean isBefore()
public boolean isAfter()
public boolean isThrowing()
public boolean isAround()
public boolean isInterceptor()
public String getAdviceName()
public Scope getScope()
public String getRegisteredName()
public ASTCFlowExpression getCflowExpression()
public String getCFlowString()
public boolean equals(Object obj)
equals
in class Object
public Object invoke(Invocation invocation) throws Throwable
invoke
in interface Interceptor
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |