@Module public class MethodTailFactory<X> extends java.lang.Object implements AspectFactory<X>
Constructor and Description |
---|
MethodTailFactory(AspectBeanFactory<X> beanFactory) |
Modifier and Type | Method and Description |
---|---|
AspectGenerator<X> |
create(AnnotatedMethod<? super X> method,
boolean isEnhanced)
Returns an aspect for the method if one exists.
|
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) |
AspectBeanFactory<X> |
getAspectBeanFactory()
Returns the bean factory
|
AnnotatedType<X> |
getBeanType()
Returns the owning bean type.
|
boolean |
isEnhanced() |
java.lang.String |
toString() |
public MethodTailFactory(AspectBeanFactory<X> beanFactory)
public AspectBeanFactory<X> getAspectBeanFactory()
getAspectBeanFactory
in interface AspectFactory<X>
public AnnotatedType<X> getBeanType()
getBeanType
in interface AspectFactory<X>
public boolean isEnhanced()
isEnhanced
in interface AspectFactory<X>
public AspectGenerator<X> create(AnnotatedMethod<? super X> method, boolean isEnhanced)
create
in interface AspectFactory<X>
public void generateInject(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map)
generateInject
in interface AspectFactory<X>
public void generatePostConstruct(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
generatePostConstruct
in interface AspectFactory<X>
java.io.IOException
public void generatePreDestroy(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map)
generatePreDestroy
in interface AspectFactory<X>
public void generateEpilogue(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map)
generateEpilogue
in interface AspectFactory<X>
public java.lang.String toString()
toString
in class java.lang.Object