|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.java.gen.ClassComponent
com.caucho.java.gen.BaseClass
com.caucho.java.gen.GenClass
com.caucho.config.gen.BeanGenerator<X>
com.caucho.ejb.gen.SessionGenerator<X>
com.caucho.ejb.gen.StatelessGenerator<X>
@Module public class StatelessGenerator<X>
Generates the skeleton for a session bean.
Field Summary |
---|
Fields inherited from class com.caucho.ejb.gen.SessionGenerator |
---|
_contextClassName |
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class com.caucho.ejb.gen.SessionGenerator |
---|
addBusinessMethod, addNonBusinessMethod, addPostConstructMethod, addPreDestroyMethod, addScheduledMethod, generateContentImpl, generatePostConstruct, getAnnotatedMethods, getLocalApi, getLocalBean, getMethods, getRemoteApi, hasNoInterfaceView, isBusinessMethod, toFullClassName |
Methods inherited from class com.caucho.java.gen.GenClass |
---|
addImport, generateTopComment, getFullClassName, getPackageName |
Methods inherited from class com.caucho.java.gen.BaseClass |
---|
addComponent, addDependencyComponent, addInterfaceName, addMethod, createMethod, findMethod, generateClassContent, generateComponents, getClassName, setClassName, setStatic, setSuperClassName, setVisibility |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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
generate
in class GenClass
out
- the writer to the output stream.
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |