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

java.lang.Object
  extended by com.caucho.config.gen.LifecycleAspectBeanFactory<X>
All Implemented Interfaces:
AspectBeanFactory<X>
Direct Known Subclasses:
StatelessLifecycleAspectBeanFactory

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

Represents a stateless local business method


Constructor Summary
LifecycleAspectBeanFactory(AspectBeanFactory<X> next, InjectManager manager, AnnotatedType<X> beanType)
           
 
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> 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> hashMap)
          Generates final closing information.
 java.lang.String getBeanInfo()
          Generates data associated with the bean
 java.lang.String getBeanInstance()
          Returns the bean instance Java reference.
 java.lang.String getBeanProxy()
          Generates the proxy object.
 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 generated bean 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifecycleAspectBeanFactory

public LifecycleAspectBeanFactory(AspectBeanFactory<X> next,
                                  InjectManager manager,
                                  AnnotatedType<X> beanType)
Method Detail

isProxy

public boolean isProxy()
Description copied from interface: AspectBeanFactory
Returns true for a proxied instance

Specified by:
isProxy in interface AspectBeanFactory<X>

getBeanType

public AnnotatedType<X> getBeanType()
Description copied from interface: AspectBeanFactory
Returns the bean type.

Specified by:
getBeanType in interface AspectBeanFactory<X>

getBeanInstance

public java.lang.String getBeanInstance()
Description copied from interface: AspectBeanFactory
Returns the bean instance Java reference.

Specified by:
getBeanInstance in interface AspectBeanFactory<X>

getInterceptorInstance

public java.lang.String getInterceptorInstance()
Description copied from interface: AspectBeanFactory
Returns the interceptor instance Java reference.

Specified by:
getInterceptorInstance in interface AspectBeanFactory<X>

getBeanProxy

public java.lang.String getBeanProxy()
Generates the proxy object.

Specified by:
getBeanProxy in interface AspectBeanFactory<X>

getBeanSuper

public java.lang.String getBeanSuper()
Description copied from interface: AspectBeanFactory
Returns the bean instance call.

Specified by:
getBeanSuper in interface AspectBeanFactory<X>

getBeanInfo

public java.lang.String getBeanInfo()
Generates data associated with the bean

Specified by:
getBeanInfo 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()
Returns the generated bean name

Specified by:
getInstanceClassName in interface AspectBeanFactory<X>

getHeadAspectFactory

public AspectFactory<X> getHeadAspectFactory()
Description copied from interface: AspectBeanFactory
Returns the head aspect factory

Specified by:
getHeadAspectFactory in interface AspectBeanFactory<X>

isEnhanced

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

Specified by:
isEnhanced in interface AspectBeanFactory<X>

create

public AspectGenerator<X> create(AnnotatedMethod<? super X> method)
Description copied from interface: AspectBeanFactory
Creates an aspect generator.

Specified by:
create in interface AspectBeanFactory<X>

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

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> hashMap)
                        throws java.io.IOException
Description copied from interface: AspectBeanFactory
Generates final closing information.

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