com.caucho.ejb.gen
Class NonBusinessAspectBeanFactory<X>

java.lang.Object
  extended by com.caucho.ejb.gen.NonBusinessAspectBeanFactory<X>
All Implemented Interfaces:
AspectBeanFactory<X>

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

Factory for creating non-business methods that are package accessible.


Constructor Summary
NonBusinessAspectBeanFactory(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> 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()
          Generates data associated with the bean
 java.lang.String getBeanInstance()
          Generates the underlying bean object
 java.lang.String getBeanProxy()
          Generates the proxy object.
 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 generated bean name
 java.lang.String getInterceptorInstance()
          Generates the underlying bean object
 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

NonBusinessAspectBeanFactory

public NonBusinessAspectBeanFactory(AnnotatedType<X> beanType)
Method Detail

getBeanType

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

Specified by:
getBeanType in interface AspectBeanFactory<X>

getHeadAspectFactory

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

Specified by:
getHeadAspectFactory 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>

isProxy

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

Specified by:
isProxy in interface AspectBeanFactory<X>

getBeanInstance

public java.lang.String getBeanInstance()
Generates the underlying bean object

Specified by:
getBeanInstance in interface AspectBeanFactory<X>

getInterceptorInstance

public java.lang.String getInterceptorInstance()
Generates the underlying bean object

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()
Generates the proxy object.

Specified by:
getBeanProxy in interface AspectBeanFactory<X>

getBeanInfo

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

Specified by:
getBeanInfo 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>

generateInject

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

Specified by:
generateInject in interface AspectBeanFactory<X>

generatePostConstruct

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

Specified by:
generatePostConstruct in interface AspectBeanFactory<X>

generatePreDestroy

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

Specified by:
generatePreDestroy in interface AspectBeanFactory<X>

generateEpilogue

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

Specified by:
generateEpilogue 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>