Class SessionBeanComponentDescription
java.lang.Object
org.jboss.as.ee.component.ComponentDescription
org.jboss.as.ejb3.component.EJBComponentDescription
org.jboss.as.ejb3.component.session.SessionBeanComponentDescription
- All Implemented Interfaces:
ResourceInjectionTarget
- Direct Known Subclasses:
SingletonComponentDescription,StatefulComponentDescription,StatelessComponentDescription
- Author:
- Jaikiran Pai, Richard Opalka
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSessionBeanComponentDescription(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
Modifier and TypeMethodDescriptionvoidaddAsynchronousClass(String viewName) Add a bean class or superclass that has been marked asynchronousvoidaddAsynchronousMethod(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) Add an asynchronous method.protected voidSetup the current invocation context interceptor, which will be used during the post-construct lifecycle of the component instanceprotected voidSetup the current invocation context interceptor, which will be used during the invocation on the view (methods)voidaddLocalBusinessInterfaceViews(String... classNames) voidaddLocalBusinessInterfaceViews(Collection<String> classNames) voidvoidaddRemoteBusinessInterfaceViews(Collection<String> classNames) protected static voidSets up the transaction management interceptor for all methods of the passed view.Set<org.jboss.invocation.proxy.MethodIdentifier>Returns theAccessTimeoutapplicable for the bean.Returns theLockTypeapplicable for the bean.jakarta.ejb.ConcurrencyManagementTypeReturns the concurrency management type for this bean.org.jboss.metadata.ejb.spec.SessionBeanMetaDataReturns the mapped-name of this beanMap<org.jboss.invocation.proxy.MethodIdentifier,AccessTimeoutDetails> Map<org.jboss.invocation.proxy.MethodIdentifier,jakarta.ejb.LockType> protected abstract ViewConfiguratorReturns the type of the session beanbooleanbooleanbooleanbooleanbooleanvoidsetAccessTimeout(AccessTimeoutDetails accessTimeout, org.jboss.invocation.proxy.MethodIdentifier method) Sets theAccessTimeoutfor the specific bean methodvoidsetBeanLevelAccessTimeout(String className, AccessTimeoutDetails accessTimeout) Sets theAccessTimeoutapplicable for the bean.voidsetBeanLevelLockType(String className, jakarta.ejb.LockType locktype) Sets theLockTypeapplicable for the bean.voidsetConcurrencyManagementType(jakarta.ejb.ConcurrencyManagementType concurrencyManagementType) voidsetLockType(jakarta.ejb.LockType lockType, org.jboss.invocation.proxy.MethodIdentifier method) Sets theLockTypefor the specific bean methodvoidsetMappedName(String mappedName) Sets the mapped-name for this beanprotected voidMethods 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, getTimerServiceResource, 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, setTimerServiceResource, setTransactionManagementType, setupClientViewInterceptors, setupRemoteView, setupSecurityInterceptors, toStringMethods inherited from class org.jboss.as.ee.component.ComponentDescription
addClassInterceptor, addDependency, addInterceptorMethodOverride, addMethodInterceptor, addResourceInjection, createConfiguration, 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, isTimerServiceApplicable, isTimerServiceRequired, mergeInterceptorConfig, setBeanDeploymentArchiveId, setClassInterceptors, setContextServiceName, setDefaultInterceptors, setDeploymentDescriptorEnvironment, setExcludeDefaultInterceptors, setIgnoreLifecycleInterceptors, setMethodInterceptors, setNamingMode
-
Constructor Details
-
SessionBeanComponentDescription
public SessionBeanComponentDescription(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 Details
-
addLocalBusinessInterfaceViews
-
addLocalBusinessInterfaceViews
-
addNoInterfaceView
public void addNoInterfaceView() -
addWebserviceEndpointView
-
addRemoteBusinessInterfaceViews
-
hasNoInterfaceView
public boolean hasNoInterfaceView() -
setBeanLevelLockType
Sets theLockTypeapplicable for the bean.- Parameters:
className- The class that has the annotationlocktype- The lock type applicable for the bean
-
getBeanLevelLockType
Returns theLockTypeapplicable for the bean.- Returns:
-
setLockType
public void setLockType(jakarta.ejb.LockType lockType, org.jboss.invocation.proxy.MethodIdentifier method) Sets theLockTypefor the specific bean method- Parameters:
lockType- The applicable lock type for the methodmethod- The method
-
getMethodApplicableLockTypes
public Map<org.jboss.invocation.proxy.MethodIdentifier,jakarta.ejb.LockType> getMethodApplicableLockTypes() -
getBeanLevelAccessTimeout
Returns theAccessTimeoutapplicable for the bean.- Returns:
-
setBeanLevelAccessTimeout
Sets theAccessTimeoutapplicable for the bean.- Parameters:
accessTimeout- The access timeout applicable for the class
-
setAccessTimeout
public void setAccessTimeout(AccessTimeoutDetails accessTimeout, org.jboss.invocation.proxy.MethodIdentifier method) Sets theAccessTimeoutfor the specific bean method- Parameters:
accessTimeout- The applicable access timeout for the methodmethod- The method
-
getMethodApplicableAccessTimeouts
public Map<org.jboss.invocation.proxy.MethodIdentifier,AccessTimeoutDetails> getMethodApplicableAccessTimeouts() -
getConcurrencyManagementType
public jakarta.ejb.ConcurrencyManagementType getConcurrencyManagementType()Returns the concurrency management type for this bean. This method returns null if the concurrency management type hasn't explicitly been set on thisSessionBeanComponentDescription- Returns:
-
setConcurrencyManagementType
public void setConcurrencyManagementType(jakarta.ejb.ConcurrencyManagementType concurrencyManagementType) -
getMappedName
Returns the mapped-name of this bean- Returns:
-
setMappedName
Sets the mapped-name for this bean- Parameters:
mappedName-
-
addAsynchronousMethod
public void addAsynchronousMethod(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) Add an asynchronous method.- Parameters:
methodIdentifier- The identifier for an async method
-
getAsynchronousMethods
- Returns:
- The identifier of all async methods
-
addAsynchronousClass
Add a bean class or superclass that has been marked asynchronous- Parameters:
viewName- The view name
-
getAsynchronousClasses
- Returns:
- The class name of all asynchronous classes
-
getSessionBeanType
Returns the type of the session bean- Returns:
-
setupViewInterceptors
- Overrides:
setupViewInterceptorsin classEJBComponentDescription
-
getSessionBeanObjectViewConfigurator
-
addTxManagementInterceptorForView
Sets up the transaction management interceptor for all methods of the passed view.- Parameters:
view- The EJB bean view
-
addCurrentInvocationContextFactory
protected void addCurrentInvocationContextFactory()Description copied from class:EJBComponentDescriptionSetup the current invocation context interceptor, which will be used during the post-construct lifecycle of the component instance- Specified by:
addCurrentInvocationContextFactoryin classEJBComponentDescription
-
addCurrentInvocationContextFactory
Description copied from class:EJBComponentDescriptionSetup the current invocation context interceptor, which will be used during the invocation on the view (methods)- Specified by:
addCurrentInvocationContextFactoryin classEJBComponentDescription- Parameters:
view- The view for which the interceptor has to be setup
-
isSession
public boolean isSession()- Overrides:
isSessionin classEJBComponentDescription
-
isSingleton
public boolean isSingleton()- Overrides:
isSingletonin classEJBComponentDescription
-
isStateful
public boolean isStateful()- Overrides:
isStatefulin classEJBComponentDescription
-
isStateless
public boolean isStateless()- Overrides:
isStatelessin classEJBComponentDescription
-
getDescriptorData
public org.jboss.metadata.ejb.spec.SessionBeanMetaData getDescriptorData()- Overrides:
getDescriptorDatain classEJBComponentDescription
-