@Module public class InterceptorFactory<X> extends AbstractAspectFactory<X>
Constructor and Description |
---|
InterceptorFactory(AspectBeanFactory<X> beanFactory,
AspectFactory<X> next,
InjectManager manager) |
Modifier and Type | Method and Description |
---|---|
AspectGenerator<X> |
create(AnnotatedMethod<? super X> method,
boolean isEnhanced)
Creates an aspect for interception if the method should be intercepted.
|
void |
generateBeanInfo(JavaWriter out) |
void |
generateEpilogue(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map) |
void |
generateInject(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map) |
void |
generatePostConstruct(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map) |
void |
generatePreDestroy(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map) |
void |
generateThis(JavaWriter out) |
AnnotatedMethod<? super X> |
getAroundInvokeMethod() |
java.util.HashMap<java.lang.Class<?>,java.lang.annotation.Annotation> |
getClassInterceptorBindings() |
java.util.HashSet<java.lang.Class<?>> |
getDecoratorClasses() |
boolean |
isEnhanced()
Returns true if the factory requires enhancement
|
boolean |
isPassivating() |
boolean |
isSelfInterceptor() |
boolean |
isStateful() |
getAspectBeanFactory, getBeanType, getGeneratedClassName, getInstanceClassName, getJavaClass, toString
public InterceptorFactory(AspectBeanFactory<X> beanFactory, AspectFactory<X> next, InjectManager manager)
public java.util.HashMap<java.lang.Class<?>,java.lang.annotation.Annotation> getClassInterceptorBindings()
public java.util.HashSet<java.lang.Class<?>> getDecoratorClasses()
public boolean isPassivating()
public boolean isStateful()
public boolean isSelfInterceptor()
public AspectGenerator<X> create(AnnotatedMethod<? super X> method, boolean isEnhanced)
create
in interface AspectFactory<X>
create
in class AbstractAspectFactory<X>
public void generateInject(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
generateInject
in interface AspectFactory<X>
generateInject
in class AbstractAspectFactory<X>
java.io.IOException
public void generatePostConstruct(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
generatePostConstruct
in interface AspectFactory<X>
generatePostConstruct
in class AbstractAspectFactory<X>
java.io.IOException
public void generatePreDestroy(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
generatePreDestroy
in interface AspectFactory<X>
generatePreDestroy
in class AbstractAspectFactory<X>
java.io.IOException
public void generateEpilogue(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
generateEpilogue
in interface AspectFactory<X>
generateEpilogue
in class AbstractAspectFactory<X>
java.io.IOException
public boolean isEnhanced()
AbstractAspectFactory
isEnhanced
in interface AspectFactory<X>
isEnhanced
in class AbstractAspectFactory<X>
public AnnotatedMethod<? super X> getAroundInvokeMethod()
public void generateThis(JavaWriter out) throws java.io.IOException
out
- java.io.IOException
public void generateBeanInfo(JavaWriter out) throws java.io.IOException
out
- java.io.IOException