public class ScopedInterceptorFactory extends Object implements InterceptorFactory
Constructor and Description |
---|
ScopedInterceptorFactory(AspectDefinition aspect) |
Modifier and Type | Method and Description |
---|---|
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.
|
public ScopedInterceptorFactory(AspectDefinition aspect)
public AspectDefinition getAspect()
InterceptorFactory
getAspect
in interface InterceptorFactory
public String getAdvice()
InterceptorFactory
getAdvice
in interface InterceptorFactory
public AdviceType getType()
InterceptorFactory
getType
in interface InterceptorFactory
public boolean isDeployed()
InterceptorFactory
isDeployed
in interface InterceptorFactory
public Interceptor create(Advisor advisor, Joinpoint joinpoint)
InterceptorFactory
create
in interface InterceptorFactory
advisor
- advisor, indicates an instance or class where the interception
will occurjoinpoint
- the joinpoint that will be interceptedpublic String getName()
InterceptorFactory
getName
in interface InterceptorFactory
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.