@Module public abstract class SessionGenerator<X> extends BeanGenerator<X>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_contextClassName |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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) |
addDependency, addDependency, generateBeanConstructor, generateBeanConstructor, generateBeanPrologue, generateBusinessMethods, generateClassStaticFields, generateContextObjectConstructor, generateDelegate, generateDependency, generateDestroy, generateDestroyImpl, generateDestroyViews, generateEpilogue, generateFreeInstance, generateInject, generateInjectContent, generateLifecycleMethod, generateLifecycleMethodReflection, generateLifecycleMethods, generatePostConstructImpl, generateProxyConstructor, generateProxyConstructor, generateTimer, getBeanClassName, getBeanType, getLifecycleAspects, getLifecycleInstance, getLifecycleMethods, getViewClassName, isProxy, isRemote, toString
addImport, generate, generateTopComment, getFullClassName, getPackageName
addComponent, addDependencyComponent, addInterfaceName, addMethod, createMethod, findMethod, generateClassContent, generateComponents, getClassName, setClassName, setStatic, setSuperClassName, setVisibility
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)
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.IOException
protected 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)