org.jboss.aop.advice
Class GenericInterceptorFactory

java.lang.Object
  extended by org.jboss.aop.advice.GenericInterceptorFactory
All Implemented Interfaces:
InterceptorFactory

public class GenericInterceptorFactory
extends Object
implements InterceptorFactory


Constructor Summary
GenericInterceptorFactory(Class<?> clazz)
           
GenericInterceptorFactory(String classname, Element element)
           
 
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 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.
 void undeploy()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericInterceptorFactory

public GenericInterceptorFactory(String classname,
                                 Element element)

GenericInterceptorFactory

public GenericInterceptorFactory(Class<?> clazz)
Method Detail

getName

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

Specified by:
getName in interface InterceptorFactory
Returns:

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

getAdvice

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

Specified by:
getAdvice in interface InterceptorFactory

undeploy

public void undeploy()

isDeployed

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

Specified by:
isDeployed in interface InterceptorFactory

getClassName

public String getClassName()

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.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

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.