@Module public class CandiAspectBeanFactory<X> extends java.lang.Object implements AspectBeanFactory<X>
| Constructor and Description |
|---|
CandiAspectBeanFactory(InjectManager manager,
AnnotatedType<X> beanType) |
| Modifier and Type | Method and Description |
|---|---|
AspectGenerator<X> |
create(AnnotatedMethod<? super X> method)
Creates a new aspect for a method.
|
protected AspectFactory<X> |
createAspectFactory() |
void |
generateEpilogue(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map)
Generates final closing information.
|
void |
generateInject(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map)
Generates final closing information.
|
void |
generatePostConstruct(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map)
Generates final initialization information.
|
void |
generatePreDestroy(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map)
Generates final closing information.
|
java.lang.String |
getBeanInfo()
Returns the beanInfo variable for shared bean instance information
|
java.lang.String |
getBeanInstance()
Returns the bean instance Java reference.
|
java.lang.String |
getBeanProxy()
Returns the proxy Java reference.
|
java.lang.String |
getBeanSuper()
Returns the bean super reference.
|
AnnotatedType<X> |
getBeanType()
Returns the bean type.
|
java.lang.String |
getGeneratedClassName()
Returns the generated bean name
|
AspectFactory<X> |
getHeadAspectFactory()
Returns the head aspect factory
|
java.lang.String |
getInstanceClassName()
Returns the instance class name.
|
java.lang.String |
getInterceptorInstance()
Returns the interceptor instance Java reference.
|
boolean |
isEnhanced()
Returns true if the factory forces enhancement.
|
boolean |
isProxy()
Returns true for a proxied instance
|
java.lang.String |
toString() |
public CandiAspectBeanFactory(InjectManager manager, AnnotatedType<X> beanType)
public AnnotatedType<X> getBeanType()
getBeanType in interface AspectBeanFactory<X>public java.lang.String getGeneratedClassName()
getGeneratedClassName in interface AspectBeanFactory<X>public java.lang.String getInstanceClassName()
AspectBeanFactorygetInstanceClassName in interface AspectBeanFactory<X>public AspectFactory<X> getHeadAspectFactory()
getHeadAspectFactory in interface AspectBeanFactory<X>public boolean isProxy()
isProxy in interface AspectBeanFactory<X>public java.lang.String getBeanInstance()
getBeanInstance in interface AspectBeanFactory<X>public java.lang.String getInterceptorInstance()
getInterceptorInstance in interface AspectBeanFactory<X>public java.lang.String getBeanSuper()
getBeanSuper in interface AspectBeanFactory<X>public java.lang.String getBeanProxy()
getBeanProxy in interface AspectBeanFactory<X>public java.lang.String getBeanInfo()
getBeanInfo in interface AspectBeanFactory<X>public AspectGenerator<X> create(AnnotatedMethod<? super X> method)
create in interface AspectBeanFactory<X>protected AspectFactory<X> createAspectFactory()
public boolean isEnhanced()
AspectBeanFactoryisEnhanced in interface AspectBeanFactory<X>public void generateInject(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
AspectBeanFactorygenerateInject in interface AspectBeanFactory<X>java.io.IOExceptionpublic void generatePostConstruct(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
AspectBeanFactorygeneratePostConstruct in interface AspectBeanFactory<X>java.io.IOExceptionpublic void generatePreDestroy(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
AspectBeanFactorygeneratePreDestroy in interface AspectBeanFactory<X>java.io.IOExceptionpublic void generateEpilogue(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
AspectBeanFactorygenerateEpilogue in interface AspectBeanFactory<X>java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object