org.jboss.aop
Class GeneratedInstanceAdvisorMixin.InstanceInterceptorFactory

java.lang.Object
  extended by org.jboss.aop.GeneratedInstanceAdvisorMixin.InstanceInterceptorFactory
All Implemented Interfaces:
InterceptorFactory
Enclosing class:
GeneratedInstanceAdvisorMixin

public class GeneratedInstanceAdvisorMixin.InstanceInterceptorFactory
extends Object
implements InterceptorFactory


Method Summary
 Interceptor create(Advisor advisor, Joinpoint joinpoint)
          Creates an interceptor that represents this advice and that delegates execution to this advice.
 String getAdvice()
          Returns the advice method name.
 AspectDefinition getAspect()
          Returns the aspect definition, a record of the class that contains the interceptor method.
 String getClassName()
           
 String getName()
          Returns the name that identifies this interceptor/advice.
 AdviceType getType()
          Returns the type of this advice.
 boolean isDeployed()
          Indicates whether this interceptor/advice is deployed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public Interceptor create(Advisor advisor,
                          Joinpoint joinpoint)
Description copied from interface: InterceptorFactory
Creates an interceptor that represents this advice and that delegates execution to this advice.

Specified by:
create in interface InterceptorFactory
Parameters:
advisor - advisor, indicates an instance or class where the interception will occur
joinpoint - the joinpoint that will be intercepted
Returns:
an interceptor. Notice this can be an instance of the aspect class itself, if this class is an interceptor.

getClassName

public String getClassName()

getAdvice

public String getAdvice()
Description copied from interface: InterceptorFactory
Returns the advice method name.

Specified by:
getAdvice in interface InterceptorFactory

getAspect

public AspectDefinition getAspect()
Description copied from interface: InterceptorFactory
Returns the aspect definition, a record of the class that contains the interceptor method.

Specified by:
getAspect in interface InterceptorFactory

getName

public String getName()
Description copied from interface: InterceptorFactory
Returns the name that identifies this interceptor/advice.

Specified by:
getName in interface InterceptorFactory
Returns:

isDeployed

public boolean isDeployed()
Description copied from interface: InterceptorFactory
Indicates whether this interceptor/advice is deployed.

Specified by:
isDeployed in interface InterceptorFactory

getType

public AdviceType getType()
Description copied from interface: InterceptorFactory
Returns the type of this advice.

Specified by:
getType in interface InterceptorFactory


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.