@Module public class SingletonGenerator<X> extends SessionGenerator<X>
_contextClassName
Constructor and Description |
---|
SingletonGenerator(java.lang.String ejbName,
AnnotatedType<X> ejbClass,
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 singleton session bean
|
protected void |
generateClassContent(JavaWriter out)
Generates the class content.
|
protected void |
generateInjectContent(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, generateContentImpl, generatePostConstruct, getAnnotatedMethods, getLocalApi, getLocalBean, getMethods, getRemoteApi, getScheduledAspectBeanFactory, hasNoInterfaceView, introspect, isBusinessMethod, toFullClassName
addDependency, addDependency, generateBeanConstructor, generateBeanConstructor, generateBeanPrologue, generateBusinessMethods, generateClassStaticFields, generateContextObjectConstructor, generateDelegate, generateDependency, generateDestroy, generateDestroyImpl, generateDestroyViews, generateEpilogue, generateFreeInstance, generateInject, 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 SingletonGenerator(java.lang.String ejbName, AnnotatedType<X> ejbClass, 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 generateInjectContent(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
generateInjectContent
in class BeanGenerator<X>
java.io.IOException