com.caucho.config.gen
Class CandiAspectBeanFactory<X>

java.lang.Object
  extended by com.caucho.config.gen.CandiAspectBeanFactory<X>
All Implemented Interfaces:
AspectBeanFactory<X>
Direct Known Subclasses:
MessageAspectBeanFactory, SingletonAspectBeanFactory, StatefulAspectBeanFactory, StatelessAspectBeanFactory

@Module
public class CandiAspectBeanFactory<X>
extends java.lang.Object
implements AspectBeanFactory<X>

Manages aspect factories for a bean.


Constructor Summary
CandiAspectBeanFactory(InjectManager manager, AnnotatedType<X> beanType)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CandiAspectBeanFactory

public CandiAspectBeanFactory(InjectManager manager,
                              AnnotatedType<X> beanType)
Method Detail

getBeanType

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

Specified by:
getBeanType in interface AspectBeanFactory<X>

getGeneratedClassName

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

Specified by:
getGeneratedClassName in interface AspectBeanFactory<X>

getInstanceClassName

public java.lang.String getInstanceClassName()
Description copied from interface: AspectBeanFactory
Returns the instance class name.

Specified by:
getInstanceClassName in interface AspectBeanFactory<X>

getHeadAspectFactory

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

Specified by:
getHeadAspectFactory in interface AspectBeanFactory<X>

isProxy

public boolean isProxy()
Returns true for a proxied instance

Specified by:
isProxy in interface AspectBeanFactory<X>

getBeanInstance

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

Specified by:
getBeanInstance in interface AspectBeanFactory<X>

getInterceptorInstance

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

Specified by:
getInterceptorInstance in interface AspectBeanFactory<X>

getBeanSuper

public java.lang.String getBeanSuper()
Returns the bean super reference.

Specified by:
getBeanSuper in interface AspectBeanFactory<X>

getBeanProxy

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

Specified by:
getBeanProxy in interface AspectBeanFactory<X>

getBeanInfo

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

Specified by:
getBeanInfo in interface AspectBeanFactory<X>

create

public AspectGenerator<X> create(AnnotatedMethod<? super X> method)
Creates a new aspect for a method.

Specified by:
create in interface AspectBeanFactory<X>

createAspectFactory

protected AspectFactory<X> createAspectFactory()

isEnhanced

public boolean isEnhanced()
Description copied from interface: AspectBeanFactory
Returns true if the factory forces enhancement.

Specified by:
isEnhanced in interface AspectBeanFactory<X>

generateInject

public void generateInject(JavaWriter out,
                           java.util.HashMap<java.lang.String,java.lang.Object> map)
                    throws java.io.IOException
Description copied from interface: AspectBeanFactory
Generates final closing information.

Specified by:
generateInject in interface AspectBeanFactory<X>
Throws:
java.io.IOException

generatePostConstruct

public void generatePostConstruct(JavaWriter out,
                                  java.util.HashMap<java.lang.String,java.lang.Object> map)
                           throws java.io.IOException
Description copied from interface: AspectBeanFactory
Generates final initialization information.

Specified by:
generatePostConstruct in interface AspectBeanFactory<X>
Throws:
java.io.IOException

generatePreDestroy

public void generatePreDestroy(JavaWriter out,
                               java.util.HashMap<java.lang.String,java.lang.Object> map)
                        throws java.io.IOException
Description copied from interface: AspectBeanFactory
Generates final closing information.

Specified by:
generatePreDestroy in interface AspectBeanFactory<X>
Throws:
java.io.IOException

generateEpilogue

public void generateEpilogue(JavaWriter out,
                             java.util.HashMap<java.lang.String,java.lang.Object> map)
                      throws java.io.IOException
Description copied from interface: AspectBeanFactory
Generates final closing information.

Specified by:
generateEpilogue in interface AspectBeanFactory<X>
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object