Class SingletonComponentDescription
- java.lang.Object
-
- org.jboss.as.ee.component.ComponentDescription
-
- org.jboss.as.ejb3.component.EJBComponentDescription
-
- org.jboss.as.ejb3.component.session.SessionBeanComponentDescription
-
- org.jboss.as.ejb3.component.singleton.SingletonComponentDescription
-
- All Implemented Interfaces:
ResourceInjectionTarget
public class SingletonComponentDescription extends SessionBeanComponentDescription
Component description for a singleton bean- Author:
- Jaikiran Pai
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.as.ejb3.component.session.SessionBeanComponentDescription
SessionBeanComponentDescription.SessionBeanType
-
-
Constructor Summary
Constructors Constructor Description SingletonComponentDescription(String componentName, String componentClassName, EjbJarDescription ejbJarDescription, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, org.jboss.metadata.ejb.spec.SessionBeanMetaData descriptorData)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentConfigurationcreateConfiguration(org.jboss.as.server.deployment.reflect.ClassReflectionIndex classIndex, ClassLoader moduleClassLoader, org.jboss.modules.ModuleLoader moduleLoader)List<org.jboss.msc.service.ServiceName>getDependsOn()protected ViewConfiguratorgetSessionBeanObjectViewConfigurator()SessionBeanComponentDescription.SessionBeanTypegetSessionBeanType()Returns the type of the session beanvoidinitOnStartup()Marks the singleton bean for init-on-startupbooleanisInitOnStartup()Returns true if the singleton bean is marked for init-on-startup (a.k.a @Startup).booleanisTimerServiceApplicable()protected voidsetupViewInterceptors(EJBViewDescription view)-
Methods inherited from class org.jboss.as.ejb3.component.session.SessionBeanComponentDescription
addAsynchronousClass, addAsynchronousMethod, addCurrentInvocationContextFactory, addCurrentInvocationContextFactory, addLocalBusinessInterfaceViews, addLocalBusinessInterfaceViews, addNoInterfaceView, addRemoteBusinessInterfaceViews, addTxManagementInterceptorForView, addWebserviceEndpointView, getAsynchronousClasses, getAsynchronousMethods, getBeanLevelAccessTimeout, getBeanLevelLockType, getConcurrencyManagementType, getDescriptorData, getMappedName, getMethodApplicableAccessTimeouts, getMethodApplicableLockTypes, hasNoInterfaceView, isSession, isSingleton, isStateful, isStateless, setAccessTimeout, setBeanLevelAccessTimeout, setBeanLevelLockType, setConcurrencyManagementType, setLockType, setMappedName
-
Methods inherited from class org.jboss.as.ejb3.component.EJBComponentDescription
addDeclaredRoles, addEjbLocalObjectView, addEjbObjectView, addEJBSuspendHandlerDependency, addLocalHome, addRemoteHome, addRemoteTransactionsDependency, addScheduleMethod, addTransactionManagerDependencies, excludeClassLevelContainerInterceptors, excludeDefaultContainerInterceptors, getAllContainerInterceptors, getAnnotationMethodPermissions, getClassLevelContainerInterceptors, getDeclaredRoles, getDefaultContainerInterceptors, getDefinedSecurityDomain, getDescriptorMethodPermissions, getEJBClassName, getEjbHomeView, getEjbLocalHomeView, getEjbLocalView, getEJBName, getEjbRemoteView, getElytronInterceptorFactories, getMethodLevelContainerInterceptors, getResolvedSecurityDomain, getRunAs, getRunAsPrincipal, getScheduleMethods, getSecurityDomainServiceName, getSecurityRoleLinks, getSecurityRoles, getServerInterceptorCache, getShutDownInterceptorFactory, getTimeoutMethod, getTimerMethods, getTimerService, getTransactionAttributes, getTransactionManagementType, getTransactionTimeouts, hasBeanLevelSecurityMetadata, isEntity, isExcludeClassLevelContainerInterceptors, isExcludeDefaultContainerInterceptors, isExcludeDefaultContainerInterceptors, isExposedViaIiop, isMessageDriven, isMissingMethodPermissionsDeniedAccess, isOutflowSecurityDomainsConfigured, isSecurityRequired, linkSecurityRoles, registerView, registerView, requiresJacc, requiresLegacyCompliantPrincipalPropagation, setClassLevelContainerInterceptors, setDeclaredRoles, setDefaultContainerInterceptors, setDefaultSecurityDomain, setDefinedSecurityDomain, setExcludeDefaultContainerInterceptors, setExposedViaIiop, setLegacyCompliantPrincipalPropagation, setMethodContainerInterceptors, setMissingMethodPermissionsDenyAccess, setOutflowSecurityDomainsConfigured, setRequiresJacc, setRunAs, setRunAsPrincipal, setSecurityDomainServiceName, setSecurityRequired, setSecurityRoles, setServerInterceptorCache, setTimeoutMethod, setTimerService, setTransactionManagementType, setupClientViewInterceptors, setupRemoteView, setupSecurityInterceptors, toString
-
Methods inherited from class org.jboss.as.ee.component.ComponentDescription
addClassInterceptor, 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, isCDIInterceptorEnabled, isExcludeClassInterceptors, isExcludeDefaultInterceptors, isExcludeDefaultInterceptors, isIgnoreLifecycleInterceptors, isIntercepted, isOptional, isPassivationApplicable, isTimerServiceRequired, mergeInterceptorConfig, setBeanDeploymentArchiveId, setClassInterceptors, setContextServiceName, setDefaultInterceptors, setDeploymentDescriptorEnvironment, setExcludeDefaultInterceptors, setIgnoreLifecycleInterceptors, setMethodInterceptors, setNamingMode
-
-
-
-
Constructor Detail
-
SingletonComponentDescription
public SingletonComponentDescription(String componentName, String componentClassName, EjbJarDescription ejbJarDescription, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, org.jboss.metadata.ejb.spec.SessionBeanMetaData descriptorData)
Construct a new instance.- Parameters:
componentName- the component namecomponentClassName- the component instance class nameejbJarDescription- the module description
-
-
Method Detail
-
createConfiguration
public ComponentConfiguration createConfiguration(org.jboss.as.server.deployment.reflect.ClassReflectionIndex classIndex, ClassLoader moduleClassLoader, org.jboss.modules.ModuleLoader moduleLoader)
- Overrides:
createConfigurationin classComponentDescription
-
isInitOnStartup
public boolean isInitOnStartup()
Returns true if the singleton bean is marked for init-on-startup (a.k.a @Startup). Else returns false- Returns:
-
initOnStartup
public void initOnStartup()
Marks the singleton bean for init-on-startup
-
getSessionBeanType
public SessionBeanComponentDescription.SessionBeanType getSessionBeanType()
Description copied from class:SessionBeanComponentDescriptionReturns the type of the session bean- Specified by:
getSessionBeanTypein classSessionBeanComponentDescription- Returns:
-
setupViewInterceptors
protected void setupViewInterceptors(EJBViewDescription view)
- Overrides:
setupViewInterceptorsin classSessionBeanComponentDescription
-
getSessionBeanObjectViewConfigurator
protected ViewConfigurator getSessionBeanObjectViewConfigurator()
- Specified by:
getSessionBeanObjectViewConfiguratorin classSessionBeanComponentDescription
-
getDependsOn
public List<org.jboss.msc.service.ServiceName> getDependsOn()
-
isTimerServiceApplicable
public boolean isTimerServiceApplicable()
- Overrides:
isTimerServiceApplicablein classComponentDescription
-
-