@Module public abstract class AbstractAspectFactory<X> extends java.lang.Object implements AspectFactory<X>
Modifier | Constructor and Description |
---|---|
protected |
AbstractAspectFactory(AspectBeanFactory<X> beanFactory,
AspectFactory<X> next) |
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 factory's bean type.
|
java.lang.String |
getGeneratedClassName()
Returns the generated class name
|
java.lang.String |
getInstanceClassName()
Returns the generated class name
|
java.lang.Class<?> |
getJavaClass()
Returns the Java class of the bean.
|
boolean |
isEnhanced()
Returns true if the factory requires enhancement
|
java.lang.String |
toString() |
protected AbstractAspectFactory(AspectBeanFactory<X> beanFactory, AspectFactory<X> next)
public AspectBeanFactory<X> getAspectBeanFactory()
getAspectBeanFactory
in interface AspectFactory<X>
public java.lang.String getGeneratedClassName()
public java.lang.String getInstanceClassName()
public AnnotatedType<X> getBeanType()
getBeanType
in interface AspectFactory<X>
public java.lang.Class<?> getJavaClass()
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) throws java.io.IOException
generateInject
in interface AspectFactory<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>
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>
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>
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object