@Module public class StatelessGenerator<X> extends SessionGenerator<X>
_contextClassName
Constructor and Description |
---|
StatelessGenerator(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 |
generateExtends(JavaWriter out) |
void |
generateHeader(JavaWriter out)
Generates the local/remote proxy.
|
void |
generateProxy(JavaWriter out)
Generates the local/remote proxy.
|
void |
generateProxyCall(JavaWriter out,
java.lang.reflect.Method implMethod) |
void |
generateProxyPool(JavaWriter out) |
protected void |
generateSuper(JavaWriter out,
java.lang.String serverVar) |
protected void |
generateTimeoutCallback(JavaWriter out) |
void |
generateTimer(JavaWriter out)
Generates timer code
|
protected AspectBeanFactory<X> |
getAspectBeanFactory() |
java.lang.String |
getBeanClassName() |
java.lang.String |
getContextClassName() |
protected AspectBeanFactory<X> |
getLifecycleAspectFactory() |
protected java.lang.String |
getLifecycleInstance() |
protected AspectBeanFactory<X> |
getScheduledAspectBeanFactory() |
java.lang.String |
getViewClassName() |
void |
introspect()
Introspects the APIs methods, producing a business method for each.
|
void |
introspectLifecycle(java.lang.Class<?> cl)
Introspects the lifecycle methods
|
protected AnnotatedType<? super X> |
introspectLocalDefault()
Returns the interface itself for the no-interface view
|
void |
introspectTimer(AnnotatedType<X> apiClass)
Introspects the lifecycle methods
|
boolean |
isProxy()
True if the implementation is a proxy, i.e.
|
boolean |
isStateless() |
protected boolean |
isTimerSupported() |
addBusinessMethod, addNonBusinessMethod, addPostConstructMethod, addPreDestroyMethod, addScheduledMethod, generateContentImpl, generatePostConstruct, getAnnotatedMethods, getLocalApi, getLocalBean, getMethods, getRemoteApi, hasNoInterfaceView, isBusinessMethod, toFullClassName
addDependency, addDependency, generateBeanConstructor, generateBeanConstructor, generateBeanPrologue, generateBusinessMethods, generateClassStaticFields, generateContextObjectConstructor, generateDelegate, generateDependency, generateDestroy, generateDestroyImpl, generateDestroyViews, generateEpilogue, generateFreeInstance, generateInject, generateInjectContent, generateLifecycleMethod, generateLifecycleMethodReflection, generateLifecycleMethods, generatePostConstructImpl, generateProxyConstructor, generateProxyConstructor, getBeanType, getLifecycleAspects, getLifecycleMethods, isRemote, toString
addImport, generateTopComment, getFullClassName, getPackageName
addComponent, addDependencyComponent, addInterfaceName, addMethod, createMethod, findMethod, generateClassContent, generateComponents, getClassName, setClassName, setStatic, setSuperClassName, setVisibility
public StatelessGenerator(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> getScheduledAspectBeanFactory()
getScheduledAspectBeanFactory
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>
protected AnnotatedType<? super X> introspectLocalDefault()
introspectLocalDefault
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 java.lang.String getLifecycleInstance()
getLifecycleInstance
in class BeanGenerator<X>
public void introspect()
introspect
in class SessionGenerator<X>
public void introspectLifecycle(java.lang.Class<?> cl)
public void introspectTimer(AnnotatedType<X> apiClass)
public void generate(JavaWriter out) throws java.io.IOException
public void generateHeader(JavaWriter out) throws java.io.IOException
java.io.IOException
public void generateProxy(JavaWriter out) throws java.io.IOException
java.io.IOException
protected void generateTimeoutCallback(JavaWriter out) throws java.io.IOException
java.io.IOException
protected void generateExtends(JavaWriter out) throws java.io.IOException
java.io.IOException
public void generateProxyPool(JavaWriter out) throws java.io.IOException
java.io.IOException
public void generateProxyCall(JavaWriter out, java.lang.reflect.Method implMethod) throws java.io.IOException
java.io.IOException
protected void generateSuper(JavaWriter out, java.lang.String serverVar) throws java.io.IOException
java.io.IOException
public void generateTimer(JavaWriter out) throws java.io.IOException
BeanGenerator
generateTimer
in class BeanGenerator<X>
java.io.IOException