com.caucho.config.gen
Interface AspectBeanFactory<X>

All Known Implementing Classes:
CandiAspectBeanFactory, LifecycleAspectBeanFactory, MessageAspectBeanFactory, NonBusinessAspectBeanFactory, SingletonAspectBeanFactory, StatefulAspectBeanFactory, StatelessAspectBeanFactory, StatelessLifecycleAspectBeanFactory, StatelessScheduledAspectBeanFactory

@Module
public interface AspectBeanFactory<X>

Manages aspect factories for a bean.


Method Summary
 AspectGenerator<X> create(AnnotatedMethod<? super X> method)
          Creates an aspect generator.
 void generateEpilogue(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> hashMap)
          Generates final closing information.
 void generateInject(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> hashMap)
          Generates final closing information.
 void generatePostConstruct(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> hashMap)
          Generates final initialization information.
 void generatePreDestroy(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> hashMap)
          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 instance call.
 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
 

Method Detail

getBeanType

AnnotatedType<X> getBeanType()
Returns the bean type.


getHeadAspectFactory

AspectFactory<X> getHeadAspectFactory()
Returns the head aspect factory


getGeneratedClassName

java.lang.String getGeneratedClassName()
Returns the generated bean name.


getInstanceClassName

java.lang.String getInstanceClassName()
Returns the instance class name.


isProxy

boolean isProxy()
Returns true for a proxied instance


getBeanInstance

java.lang.String getBeanInstance()
Returns the bean instance Java reference.


getInterceptorInstance

java.lang.String getInterceptorInstance()
Returns the interceptor instance Java reference.


getBeanSuper

java.lang.String getBeanSuper()
Returns the bean instance call.


getBeanProxy

java.lang.String getBeanProxy()
Returns the proxy Java reference.


getBeanInfo

java.lang.String getBeanInfo()
Returns the beanInfo variable for shared bean instance information


create

AspectGenerator<X> create(AnnotatedMethod<? super X> method)
Creates an aspect generator.


generateInject

void generateInject(JavaWriter out,
                    java.util.HashMap<java.lang.String,java.lang.Object> hashMap)
                    throws java.io.IOException
Generates final closing information.

Throws:
java.io.IOException

generatePostConstruct

void generatePostConstruct(JavaWriter out,
                           java.util.HashMap<java.lang.String,java.lang.Object> hashMap)
                           throws java.io.IOException
Generates final initialization information.

Throws:
java.io.IOException

generatePreDestroy

void generatePreDestroy(JavaWriter out,
                        java.util.HashMap<java.lang.String,java.lang.Object> hashMap)
                        throws java.io.IOException
Generates final closing information.

Throws:
java.io.IOException

generateEpilogue

void generateEpilogue(JavaWriter out,
                      java.util.HashMap<java.lang.String,java.lang.Object> hashMap)
                      throws java.io.IOException
Generates final closing information.

Throws:
java.io.IOException

isEnhanced

boolean isEnhanced()
Returns true if the factory forces enhancement.