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

All Known Implementing Classes:
AbstractAspectFactory, AsynchronousFactory, CacheFactory, CandiMethodHeadFactory, InterceptorFactory, LifecycleMethodHeadFactory, LifecycleMethodTailFactory, LockFactory, MessageMethodHeadFactory, MessageMethodTailFactory, MethodHeadFactory, MethodTailFactory, SecurityFactory, SingletonMethodHeadFactory, StatefulMethodHeadFactory, StatelessMethodHeadFactory, StatelessMethodTailFactory, StatelessScheduledMethodHeadFactory, StatelessScheduledMethodTailFactory, XaFactory

@Module
public interface AspectFactory<X>

Creates an aspect generator for a method.


Method Summary
 AspectGenerator<X> create(AnnotatedMethod<? super X> method, boolean isEnhanced)
          Returns an aspect for the method if one exists.
 void generateEpilogue(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map)
           
 void generateInject(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map)
           
 void generatePostConstruct(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map)
           
 void generatePreDestroy(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map)
           
 AspectBeanFactory<X> getAspectBeanFactory()
          Returns the owning AspectBeanFactory
 AnnotatedType<X> getBeanType()
          Returns the bean type.
 boolean isEnhanced()
           
 

Method Detail

getAspectBeanFactory

AspectBeanFactory<X> getAspectBeanFactory()
Returns the owning AspectBeanFactory


getBeanType

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


isEnhanced

boolean isEnhanced()

create

AspectGenerator<X> create(AnnotatedMethod<? super X> method,
                          boolean isEnhanced)
Returns an aspect for the method if one exists.


generateInject

void generateInject(JavaWriter out,
                    java.util.HashMap<java.lang.String,java.lang.Object> map)
                    throws java.io.IOException
Throws:
java.io.IOException

generatePostConstruct

void generatePostConstruct(JavaWriter out,
                           java.util.HashMap<java.lang.String,java.lang.Object> map)
                           throws java.io.IOException
Throws:
java.io.IOException

generatePreDestroy

void generatePreDestroy(JavaWriter out,
                        java.util.HashMap<java.lang.String,java.lang.Object> map)
                        throws java.io.IOException
Throws:
java.io.IOException

generateEpilogue

void generateEpilogue(JavaWriter out,
                      java.util.HashMap<java.lang.String,java.lang.Object> map)
                      throws java.io.IOException
Throws:
java.io.IOException