public class SingletonComponentDescription extends SessionBeanComponentDescription
SessionBeanComponentDescription.SessionBeanType| Constructor and Description |
|---|
SingletonComponentDescription(String componentName,
String componentClassName,
EjbJarDescription ejbJarDescription,
org.jboss.msc.service.ServiceName deploymentUnitServiceName,
org.jboss.metadata.ejb.spec.SessionBeanMetaData descriptorData)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsConcurrentAccess()
Returns true if this session bean component type allows concurrent access to the component instances.
|
ComponentConfiguration |
createConfiguration(ClassIndex classIndex,
ClassLoader moduleClassLoader,
org.jboss.modules.ModuleLoader moduleLoader) |
List<org.jboss.msc.service.ServiceName> |
getDependsOn() |
protected ViewConfigurator |
getSessionBeanObjectViewConfigurator() |
SessionBeanComponentDescription.SessionBeanType |
getSessionBeanType()
Returns the type of the session bean
|
void |
initOnStartup()
Marks the singleton bean for init-on-startup
|
boolean |
isInitOnStartup()
Returns true if the singleton bean is marked for init-on-startup (a.k.a @Startup).
|
boolean |
isTimerServiceApplicable()
TODO: change this to a per method setting
|
protected void |
setupViewInterceptors(EJBViewDescription view) |
addAsynchronousClass, addAsynchronousMethod, addCurrentInvocationContextFactory, addCurrentInvocationContextFactory, addLocalBusinessInterfaceViews, addLocalBusinessInterfaceViews, addNoInterfaceView, addRemoteBusinessInterfaceViews, addTxManagementInterceptorForView, addWebserviceEndpointView, addWebserviceEndpointView, getAsynchronousClasses, getAsynchronousMethods, getBeanLevelAccessTimeout, getBeanLevelLockType, getClustering, getConcurrencyManagementType, getDescriptorData, getMappedName, getMethodApplicableAccessTimeouts, getMethodApplicableLockTypes, hasNoInterfaceView, isSession, isSingleton, isStateful, isStateless, setAccessTimeout, setBeanLevelAccessTimeout, setBeanLevelLockType, setClustering, setConcurrencyManagementType, setLockType, setMappedNameaddDeclaredRoles, addEjbLocalObjectView, addEjbObjectView, addLocalHome, addRemoteHome, addRemoteTransactionsRepositoryDependency, addScheduleMethod, getAnnotationMethodPermissions, getDeclaredRoles, getDescriptorMethodPermissions, getEJBClassName, getEjbHomeView, getEjbLocalHomeView, getEjbLocalView, getEJBName, getEjbRemoteView, getRunAs, getRunAsPrincipal, getScheduleMethods, getSecurityDomain, getSecurityRoleLinks, getSecurityRoles, getTimeoutMethod, getTimerService, getTransactionAttributes, getTransactionManagementType, getTransactionTimeouts, isEntity, isExposedViaIiop, isMessageDriven, isSecurityEnabled, linkSecurityRoles, registerView, registerView, setDeclaredRoles, setExposedViaIiop, setRunAs, setRunAsPrincipal, setSecurityDomain, setSecurityRoles, setTimeoutMethod, setTimerService, setTransactionManagementType, setupClientViewInterceptors, setupSecurityInterceptors, toStringaddClassInterceptor, addDependency, addInterceptorMethodOverride, addMethodInterceptor, addResourceInjection, excludeClassInterceptors, excludeDefaultInterceptors, getAllInterceptors, getApplicationName, getBeanDeploymentArchiveId, getBindingConfigurations, getClassInterceptor, getClassInterceptors, getComponentClassName, getComponentName, getConfigurators, getContextServiceName, getCreateServiceName, getDefaultInterceptors, getDependencies, getDeploymentDescriptorEnvironment, getMethodInterceptors, getModuleDescription, getModuleName, getNamingMode, getResourceInjections, getServiceName, getStartServiceName, getViews, isExcludeClassInterceptors, isExcludeDefaultInterceptors, isExcludeDefaultInterceptors, isIntercepted, isOptional, isPassivationApplicable, setBeanDeploymentArchiveId, setClassInterceptors, setContextServiceName, setDefaultInterceptors, setDeploymentDescriptorEnvironment, setExcludeDefaultInterceptors, setMethodInterceptors, setNamingModepublic SingletonComponentDescription(String componentName, String componentClassName, EjbJarDescription ejbJarDescription, org.jboss.msc.service.ServiceName deploymentUnitServiceName, org.jboss.metadata.ejb.spec.SessionBeanMetaData descriptorData)
componentName - the component namecomponentClassName - the component instance class nameejbJarDescription - the module descriptionpublic ComponentConfiguration createConfiguration(ClassIndex classIndex, ClassLoader moduleClassLoader, org.jboss.modules.ModuleLoader moduleLoader)
createConfiguration in class ComponentDescriptionpublic boolean isInitOnStartup()
public void initOnStartup()
public boolean allowsConcurrentAccess()
SessionBeanComponentDescriptionallowsConcurrentAccess in class SessionBeanComponentDescriptionpublic SessionBeanComponentDescription.SessionBeanType getSessionBeanType()
SessionBeanComponentDescriptiongetSessionBeanType in class SessionBeanComponentDescriptionprotected void setupViewInterceptors(EJBViewDescription view)
setupViewInterceptors in class SessionBeanComponentDescriptionprotected ViewConfigurator getSessionBeanObjectViewConfigurator()
getSessionBeanObjectViewConfigurator in class SessionBeanComponentDescriptionpublic List<org.jboss.msc.service.ServiceName> getDependsOn()
public boolean isTimerServiceApplicable()
ComponentDescriptionisTimerServiceApplicable in class ComponentDescriptionCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.