@Module public class StatefulGenerator<X> extends SessionGenerator<X>
_contextClassName
Constructor and Description |
---|
StatefulGenerator(java.lang.String ejbName,
AnnotatedType<X> beanType,
java.util.ArrayList<AnnotatedType<? super X>> localApi,
AnnotatedType<X> localBean,
java.util.ArrayList<AnnotatedType<? super X>> remoteApi) |
Modifier and Type | Method and Description |
---|---|
void |
generate(JavaWriter out)
Generates the stateful session bean
|
protected void |
generateClassContent(JavaWriter out)
Generates the class content.
|
protected void |
generateContentImpl(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map) |
void |
generateDestroy(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map)
Generates any global destroy
|
protected void |
generateDestroyImpl(JavaWriter out) |
void |
generateValidate(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map) |
void |
generateXa(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map) |
protected AspectBeanFactory<X> |
getAspectBeanFactory() |
java.lang.String |
getBeanClassName() |
java.lang.String |
getContextClassName() |
protected AspectBeanFactory<X> |
getLifecycleAspectFactory() |
java.lang.String |
getViewClassName() |
protected AnnotatedType<? super X> |
introspectLocalDefault()
Scans for the @Local interfaces
|
boolean |
isProxy()
True if the implementation is a proxy, i.e.
|
boolean |
isStateless() |
protected boolean |
isTimerSupported() |
addBusinessMethod, addNonBusinessMethod, addPostConstructMethod, addPreDestroyMethod, addScheduledMethod, generatePostConstruct, getAnnotatedMethods, getLocalApi, getLocalBean, getMethods, getRemoteApi, getScheduledAspectBeanFactory, hasNoInterfaceView, introspect, isBusinessMethod, toFullClassName
addDependency, addDependency, generateBeanConstructor, generateBeanConstructor, generateBeanPrologue, generateBusinessMethods, generateClassStaticFields, generateContextObjectConstructor, generateDelegate, generateDependency, generateDestroyViews, generateEpilogue, generateFreeInstance, generateInject, generateInjectContent, generateLifecycleMethod, generateLifecycleMethodReflection, generateLifecycleMethods, generatePostConstructImpl, generateProxyConstructor, generateProxyConstructor, generateTimer, getBeanType, getLifecycleAspects, getLifecycleInstance, getLifecycleMethods, isRemote, toString
addImport, generateTopComment, getFullClassName, getPackageName
addComponent, addDependencyComponent, addInterfaceName, addMethod, createMethod, findMethod, generateComponents, getClassName, setClassName, setStatic, setSuperClassName, setVisibility
public StatefulGenerator(java.lang.String ejbName, AnnotatedType<X> beanType, java.util.ArrayList<AnnotatedType<? super X>> localApi, AnnotatedType<X> localBean, java.util.ArrayList<AnnotatedType<? super X>> remoteApi)
protected AspectBeanFactory<X> getAspectBeanFactory()
getAspectBeanFactory
in class SessionGenerator<X>
protected AspectBeanFactory<X> getLifecycleAspectFactory()
getLifecycleAspectFactory
in class SessionGenerator<X>
public boolean isStateless()
isStateless
in class SessionGenerator<X>
protected boolean isTimerSupported()
isTimerSupported
in class SessionGenerator<X>
public java.lang.String getContextClassName()
public boolean isProxy()
isProxy
in class BeanGenerator<X>
public java.lang.String getViewClassName()
getViewClassName
in class BeanGenerator<X>
public java.lang.String getBeanClassName()
getBeanClassName
in class BeanGenerator<X>
protected AnnotatedType<? super X> introspectLocalDefault()
introspectLocalDefault
in class SessionGenerator<X>
public void generate(JavaWriter out) throws java.io.IOException
protected void generateClassContent(JavaWriter out) throws java.io.IOException
BaseClass
generateClassContent
in class BaseClass
java.io.IOException
protected void generateContentImpl(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
generateContentImpl
in class SessionGenerator<X>
java.io.IOException
public void generateValidate(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
java.io.IOException
public void generateDestroy(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
BeanGenerator
generateDestroy
in class BeanGenerator<X>
java.io.IOException
protected void generateDestroyImpl(JavaWriter out) throws java.io.IOException
generateDestroyImpl
in class BeanGenerator<X>
java.io.IOException
public void generateXa(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
java.io.IOException