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

java.lang.Object
  extended by com.caucho.config.gen.MethodTailFactory<X>
All Implemented Interfaces:
AspectFactory<X>
Direct Known Subclasses:
LifecycleMethodTailFactory, MessageMethodTailFactory, StatelessMethodTailFactory

@Module
public class MethodTailFactory<X>
extends java.lang.Object
implements AspectFactory<X>

Represents a filter for invoking a method


Constructor Summary
MethodTailFactory(AspectBeanFactory<X> beanFactory)
           
 
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 bean factory
 AnnotatedType<X> getBeanType()
          Returns the owning bean type.
 boolean isEnhanced()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodTailFactory

public MethodTailFactory(AspectBeanFactory<X> beanFactory)
Method Detail

getAspectBeanFactory

public AspectBeanFactory<X> getAspectBeanFactory()
Returns the bean factory

Specified by:
getAspectBeanFactory in interface AspectFactory<X>

getBeanType

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

Specified by:
getBeanType in interface AspectFactory<X>

isEnhanced

public boolean isEnhanced()
Specified by:
isEnhanced in interface AspectFactory<X>

create

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

Specified by:
create in interface AspectFactory<X>

generateInject

public void generateInject(JavaWriter out,
                           java.util.HashMap<java.lang.String,java.lang.Object> map)
Specified by:
generateInject in interface AspectFactory<X>

generatePostConstruct

public void generatePostConstruct(JavaWriter out,
                                  java.util.HashMap<java.lang.String,java.lang.Object> map)
                           throws java.io.IOException
Specified by:
generatePostConstruct in interface AspectFactory<X>
Throws:
java.io.IOException

generatePreDestroy

public void generatePreDestroy(JavaWriter out,
                               java.util.HashMap<java.lang.String,java.lang.Object> map)
Specified by:
generatePreDestroy in interface AspectFactory<X>

generateEpilogue

public void generateEpilogue(JavaWriter out,
                             java.util.HashMap<java.lang.String,java.lang.Object> map)
Specified by:
generateEpilogue in interface AspectFactory<X>

toString

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