org.jboss.aop.advice
Class ScopedInterceptorFactory

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

public class ScopedInterceptorFactory
extends Object
implements InterceptorFactory

Comment

Version:
$Revision: 74378 $
Author:
Bill Burke

Constructor Summary
ScopedInterceptorFactory(AspectDefinition aspect)
           
 
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 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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopedInterceptorFactory

public ScopedInterceptorFactory(AspectDefinition aspect)
Method Detail

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

getType

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

Specified by:
getType in interface InterceptorFactory

isDeployed

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

Specified by:
isDeployed in interface InterceptorFactory

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.

getName

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

Specified by:
getName in interface InterceptorFactory
Returns:

equals

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


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