org.jboss.aop.advice
Interface InterceptorFactory

All Known Implementing Classes:
AdviceFactory, GeneratedInstanceAdvisorMixin.InstanceInterceptorFactory, GenericInterceptorFactory, ScopedInterceptorFactory

public interface InterceptorFactory

This SHOULD NOT be inherited by application code!!!! This interface is used solely by JBoss AOP internally


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 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.
 

Method Detail

getAspect

AspectDefinition getAspect()
Returns the aspect definition, a record of the class that contains the interceptor method.


getAdvice

String getAdvice()
Returns the advice method name.


create

Interceptor create(Advisor advisor,
                   Joinpoint joinpoint)
Creates an interceptor that represents this advice and that delegates execution to this advice.

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.

isDeployed

boolean isDeployed()
Indicates whether this interceptor/advice is deployed.


getName

String getName()
Returns the name that identifies this interceptor/advice.

Returns:

getType

AdviceType getType()
Returns the type of this advice.



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