|
||||||||||
| 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>
@Module public abstract class SessionGenerator<X>
Generates the skeleton for a session bean.
| Field Summary | |
|---|---|
protected java.lang.String |
_contextClassName
|
| Constructor Summary | |
|---|---|
SessionGenerator(java.lang.String ejbName,
AnnotatedType<X> beanType,
java.util.ArrayList<AnnotatedType<? super X>> localApi,
AnnotatedType<X> localBean,
java.util.ArrayList<AnnotatedType<? super X>> remoteApi,
java.lang.String beanTypeName)
|
|
| Method Summary | |
|---|---|
protected void |
addBusinessMethod(AnnotatedMethod<? super X> method)
|
protected void |
addNonBusinessMethod(AnnotatedMethod<? super X> method)
|
protected void |
addPostConstructMethod(AnnotatedMethod<? super X> method)
|
protected void |
addPreDestroyMethod(AnnotatedMethod<? super X> method)
|
protected void |
addScheduledMethod(AnnotatedMethod<? super X> method)
|
protected void |
generateContentImpl(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map)
|
protected void |
generatePostConstruct(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map)
|
protected java.util.ArrayList<AnnotatedMethod<? super X>> |
getAnnotatedMethods()
Returns the merged annotated methods |
protected abstract AspectBeanFactory<X> |
getAspectBeanFactory()
|
protected AspectBeanFactory<X> |
getLifecycleAspectFactory()
|
java.util.ArrayList<AnnotatedType<? super X>> |
getLocalApi()
Returns the local API list. |
AnnotatedType<X> |
getLocalBean()
|
java.util.ArrayList<AspectGenerator<X>> |
getMethods()
Returns the introspected methods |
java.util.ArrayList<AnnotatedType<? super X>> |
getRemoteApi()
Returns the remote API list. |
protected AspectBeanFactory<X> |
getScheduledAspectBeanFactory()
|
boolean |
hasNoInterfaceView()
|
void |
introspect()
Introspects the bean. |
protected AnnotatedType<? super X> |
introspectLocalDefault()
|
static boolean |
isBusinessMethod(java.lang.reflect.Method method)
|
boolean |
isStateless()
|
protected abstract boolean |
isTimerSupported()
|
static java.lang.String |
toFullClassName(java.lang.String ejbName,
java.lang.String className,
java.lang.String beanType)
|
| Methods inherited from class com.caucho.java.gen.GenClass |
|---|
addImport, generate, 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 |
| Field Detail |
|---|
protected java.lang.String _contextClassName
| Constructor Detail |
|---|
public SessionGenerator(java.lang.String ejbName,
AnnotatedType<X> beanType,
java.util.ArrayList<AnnotatedType<? super X>> localApi,
AnnotatedType<X> localBean,
java.util.ArrayList<AnnotatedType<? super X>> remoteApi,
java.lang.String beanTypeName)
| Method Detail |
|---|
public static java.lang.String toFullClassName(java.lang.String ejbName,
java.lang.String className,
java.lang.String beanType)
public boolean isStateless()
public boolean hasNoInterfaceView()
public java.util.ArrayList<AnnotatedType<? super X>> getLocalApi()
public AnnotatedType<X> getLocalBean()
public java.util.ArrayList<AnnotatedType<? super X>> getRemoteApi()
protected java.util.ArrayList<AnnotatedMethod<? super X>> getAnnotatedMethods()
public java.util.ArrayList<AspectGenerator<X>> getMethods()
getMethods in class BeanGenerator<X>public void introspect()
introspect in class BeanGenerator<X>protected void addBusinessMethod(AnnotatedMethod<? super X> method)
protected void addPostConstructMethod(AnnotatedMethod<? super X> method)
protected void addPreDestroyMethod(AnnotatedMethod<? super X> method)
protected void addNonBusinessMethod(AnnotatedMethod<? super X> method)
protected void addScheduledMethod(AnnotatedMethod<? super X> method)
protected AnnotatedType<? super X> introspectLocalDefault()
protected void generateContentImpl(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map)
throws java.io.IOException
java.io.IOException
protected void generatePostConstruct(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map)
throws java.io.IOException
generatePostConstruct in class BeanGenerator<X>java.io.IOExceptionprotected AspectBeanFactory<X> getScheduledAspectBeanFactory()
protected abstract boolean isTimerSupported()
protected abstract AspectBeanFactory<X> getAspectBeanFactory()
getAspectBeanFactory in class BeanGenerator<X>protected AspectBeanFactory<X> getLifecycleAspectFactory()
getLifecycleAspectFactory in class BeanGenerator<X>public static boolean isBusinessMethod(java.lang.reflect.Method method)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||