org.jboss.aop.advice
Class InterceptorFactoryWrapper
java.lang.Object
org.jboss.aop.advice.InterceptorFactoryWrapper
- public class InterceptorFactoryWrapper
- extends Object
Intermediate class wrapping an interceptor factory, so that generated advisors have
all the information they need about the contained advices for generating the invokation
methods, and we don't need to generate the interceptor chains until absolutely needed.
Old skool class advisors do not use this class
- Version:
- $Revision: 1.7 $
- Author:
- Kabir Khan
InterceptorFactoryWrapper
public InterceptorFactoryWrapper(InterceptorFactory factory,
GeneratedClassAdvisor advisor,
Joinpoint joinpoint,
String cflowString,
ASTCFlowExpression cflowExpr)
InterceptorFactoryWrapper
public InterceptorFactoryWrapper(InterceptorFactory factory,
GeneratedClassAdvisor advisor,
Joinpoint joinpoint)
create
public Interceptor create(Advisor advisor,
Joinpoint joinpoint)
getAspect
public Object getAspect(Advisor advisor,
Joinpoint joinpoint)
- Create a new aspect instance to figure out what class it is
Also used as a convenience method to create aspect instances for the JoinPointGenerator
PER_INSTANCE or PER_JOINPOINT (for non-static fields) aspects cannot be created "properly"
until at runtime, since that requires access to the instance advisor
getPerInstanceAspect
public Object getPerInstanceAspect(Advisor advisor,
Joinpoint joinpoint,
InstanceAdvisor ia)
isAspectFactory
public boolean isAspectFactory()
getDelegate
public InterceptorFactory getDelegate()
getAspect
public AspectDefinition getAspect()
getName
public String getName()
getAspectClassName
public String getAspectClassName()
isBefore
public boolean isBefore()
isAfter
public boolean isAfter()
isThrowing
public boolean isThrowing()
isAround
public boolean isAround()
isInterceptor
public boolean isInterceptor()
getAdviceName
public String getAdviceName()
getScope
public Scope getScope()
getRegisteredName
public String getRegisteredName()
getCflowExpression
public ASTCFlowExpression getCflowExpression()
getCFlowString
public String getCFlowString()
equals
public boolean equals(Object obj)
Copyright © 2004 JBoss Inc. All Rights Reserved.