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

java.lang.Object
  extended by com.caucho.config.gen.AbstractAspectGenerator<X>
      extended by com.caucho.config.gen.MethodHeadGenerator<X>
          extended by com.caucho.config.gen.LifecycleMethodHeadGenerator<X>
All Implemented Interfaces:
AspectGenerator<X>

@Module
public class LifecycleMethodHeadGenerator<X>
extends MethodHeadGenerator<X>

Represents a stateful local business method


Constructor Summary
LifecycleMethodHeadGenerator(LifecycleMethodHeadFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> next)
           
 
Method Summary
 void generatePostConstruct(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map)
          Generates @PostConstruct code
 java.lang.String getMethodName()
           
protected  java.lang.String getMethodNamePrefix()
           
protected  boolean isOverride()
           
 
Methods inherited from class com.caucho.config.gen.MethodHeadGenerator
equals, generate, hashCode
 
Methods inherited from class com.caucho.config.gen.AbstractAspectGenerator
generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateCall, generateContent, generateDestroy, generateEpilogue, generateFinally, generateInject, generateMethodPrologue, generatePostCall, generatePostFinally, generatePreCall, generatePreDestroy, generatePreTry, generateProxyConstructor, generateSystemException, getAnnotation, getAnnotation, getAnnotation, getBeanFactory, getBeanType, getFactory, getJavaClass, getJavaMethod, getMethod, getThrowsExceptions, getTypeVariables, isApplicationExceptionThrown, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LifecycleMethodHeadGenerator

public LifecycleMethodHeadGenerator(LifecycleMethodHeadFactory<X> factory,
                                    AnnotatedMethod<? super X> method,
                                    AspectGenerator<X> next)
Method Detail

getMethodNamePrefix

protected java.lang.String getMethodNamePrefix()
Overrides:
getMethodNamePrefix in class MethodHeadGenerator<X>

getMethodName

public java.lang.String getMethodName()
Overrides:
getMethodName in class MethodHeadGenerator<X>

isOverride

protected boolean isOverride()
Overrides:
isOverride in class MethodHeadGenerator<X>

generatePostConstruct

public void generatePostConstruct(JavaWriter out,
                                  java.util.HashMap<java.lang.String,java.lang.Object> map)
                           throws java.io.IOException
Description copied from class: AbstractAspectGenerator
Generates @PostConstruct code

Specified by:
generatePostConstruct in interface AspectGenerator<X>
Overrides:
generatePostConstruct in class AbstractAspectGenerator<X>
Throws:
java.io.IOException