public abstract class SessionBeanComponentDescription extends EJBComponentDescription
| Modifier and Type | Class and Description |
|---|---|
static class |
SessionBeanComponentDescription.SessionBeanType |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAsynchronousClass(String viewName)
Add a bean class or superclass that has been marked asynchronous
|
void |
addAsynchronousMethod(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier)
Add an asynchronous method.
|
protected void |
addCurrentInvocationContextFactory()
Setup the current invocation context interceptor, which will be used during the post-construct
lifecycle of the component instance
|
protected void |
addCurrentInvocationContextFactory(ViewDescription view)
Setup the current invocation context interceptor, which will be used during the invocation on the view (methods)
|
void |
addLocalBusinessInterfaceViews(Collection<String> classNames) |
void |
addLocalBusinessInterfaceViews(String... classNames) |
void |
addNoInterfaceView() |
void |
addRemoteBusinessInterfaceViews(Collection<String> classNames) |
protected static void |
addTxManagementInterceptorForView(ViewDescription view)
Sets up the transaction management interceptor for all methods of the passed view.
|
EJBViewDescription |
addWebserviceEndpointView() |
Set<String> |
getAsynchronousClasses() |
Set<org.jboss.invocation.proxy.MethodIdentifier> |
getAsynchronousMethods() |
Map<String,AccessTimeoutDetails> |
getBeanLevelAccessTimeout()
Returns the
AccessTimeout applicable for the bean. |
Map<String,javax.ejb.LockType> |
getBeanLevelLockType()
Returns the
LockType applicable for the bean. |
javax.ejb.ConcurrencyManagementType |
getConcurrencyManagementType()
Returns the concurrency management type for this bean.
|
org.jboss.metadata.ejb.spec.SessionBeanMetaData |
getDescriptorData() |
String |
getMappedName()
Returns the mapped-name of this bean
|
Map<org.jboss.invocation.proxy.MethodIdentifier,AccessTimeoutDetails> |
getMethodApplicableAccessTimeouts() |
Map<org.jboss.invocation.proxy.MethodIdentifier,javax.ejb.LockType> |
getMethodApplicableLockTypes() |
protected abstract ViewConfigurator |
getSessionBeanObjectViewConfigurator() |
abstract SessionBeanComponentDescription.SessionBeanType |
getSessionBeanType()
Returns the type of the session bean
|
boolean |
hasNoInterfaceView() |
boolean |
isSession() |
boolean |
isSingleton() |
boolean |
isStateful() |
boolean |
isStateless() |
void |
setAccessTimeout(AccessTimeoutDetails accessTimeout,
org.jboss.invocation.proxy.MethodIdentifier method)
Sets the
AccessTimeout for the specific bean method |
void |
setBeanLevelAccessTimeout(String className,
AccessTimeoutDetails accessTimeout)
Sets the
AccessTimeout applicable for the bean. |
void |
setBeanLevelLockType(String className,
javax.ejb.LockType locktype)
Sets the
LockType applicable for the bean. |
void |
setConcurrencyManagementType(javax.ejb.ConcurrencyManagementType concurrencyManagementType) |
void |
setLockType(javax.ejb.LockType lockType,
org.jboss.invocation.proxy.MethodIdentifier method)
Sets the
LockType for the specific bean method |
void |
setMappedName(String mappedName)
Sets the mapped-name for this bean
|
protected void |
setupViewInterceptors(EJBViewDescription view) |
addDeclaredRoles, addEjbLocalObjectView, addEjbObjectView, addEJBSuspendHandlerDependency, addLocalHome, addRemoteHome, addRemoteTransactionsDependency, addScheduleMethod, addServerSecurityManagerDependency, addTransactionManagerDependencies, excludeClassLevelContainerInterceptors, excludeDefaultContainerInterceptors, getAllContainerInterceptors, getAnnotationMethodPermissions, getClassLevelContainerInterceptors, getDeclaredRoles, getDefaultContainerInterceptors, getDefinedSecurityDomain, getDescriptorMethodPermissions, getEJBClassName, getEjbHomeView, getEjbLocalHomeView, getEjbLocalView, getEJBName, getEjbRemoteView, getElytronInterceptorFactories, getMethodLevelContainerInterceptors, getPolicyContextID, 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, setClassLevelContainerInterceptors, setDeclaredRoles, setDefaultContainerInterceptors, setDefaultSecurityDomain, setDefinedSecurityDomain, setExcludeDefaultContainerInterceptors, setExposedViaIiop, setMethodContainerInterceptors, setMissingMethodPermissionsDenyAccess, setOutflowSecurityDomainsConfigured, setPolicyContextID, setRequiresJacc, setRunAs, setRunAsPrincipal, setSecurityDomainServiceName, setSecurityRequired, setSecurityRoles, setServerInterceptorCache, setTimeoutMethod, setTimerService, setTransactionManagementType, setupClientViewInterceptors, setupRemoteView, setupSecurityInterceptors, toStringaddClassInterceptor, 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, setNamingModepublic SessionBeanComponentDescription(String componentName, String componentClassName, EjbJarDescription ejbJarDescription, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, org.jboss.metadata.ejb.spec.SessionBeanMetaData descriptorData)
componentName - the component namecomponentClassName - the component instance class nameejbJarDescription - the module descriptionpublic void addLocalBusinessInterfaceViews(Collection<String> classNames)
public void addLocalBusinessInterfaceViews(String... classNames)
public void addNoInterfaceView()
public EJBViewDescription addWebserviceEndpointView()
public void addRemoteBusinessInterfaceViews(Collection<String> classNames)
public boolean hasNoInterfaceView()
public void setBeanLevelLockType(String className, javax.ejb.LockType locktype)
LockType applicable for the bean.className - The class that has the annotationlocktype - The lock type applicable for the beanpublic Map<String,javax.ejb.LockType> getBeanLevelLockType()
LockType applicable for the bean.public void setLockType(javax.ejb.LockType lockType,
org.jboss.invocation.proxy.MethodIdentifier method)
LockType for the specific bean methodlockType - The applicable lock type for the methodmethod - The methodpublic Map<org.jboss.invocation.proxy.MethodIdentifier,javax.ejb.LockType> getMethodApplicableLockTypes()
public Map<String,AccessTimeoutDetails> getBeanLevelAccessTimeout()
AccessTimeout applicable for the bean.public void setBeanLevelAccessTimeout(String className, AccessTimeoutDetails accessTimeout)
AccessTimeout applicable for the bean.accessTimeout - The access timeout applicable for the classpublic void setAccessTimeout(AccessTimeoutDetails accessTimeout, org.jboss.invocation.proxy.MethodIdentifier method)
AccessTimeout for the specific bean methodaccessTimeout - The applicable access timeout for the methodmethod - The methodpublic Map<org.jboss.invocation.proxy.MethodIdentifier,AccessTimeoutDetails> getMethodApplicableAccessTimeouts()
public javax.ejb.ConcurrencyManagementType getConcurrencyManagementType()
SessionBeanComponentDescriptionpublic void setConcurrencyManagementType(javax.ejb.ConcurrencyManagementType concurrencyManagementType)
public String getMappedName()
public void setMappedName(String mappedName)
mappedName - public void addAsynchronousMethod(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier)
methodIdentifier - The identifier for an async methodpublic Set<org.jboss.invocation.proxy.MethodIdentifier> getAsynchronousMethods()
public void addAsynchronousClass(String viewName)
viewName - The view namepublic Set<String> getAsynchronousClasses()
public abstract SessionBeanComponentDescription.SessionBeanType getSessionBeanType()
protected void setupViewInterceptors(EJBViewDescription view)
setupViewInterceptors in class EJBComponentDescriptionprotected abstract ViewConfigurator getSessionBeanObjectViewConfigurator()
protected static void addTxManagementInterceptorForView(ViewDescription view)
view - The EJB bean viewprotected void addCurrentInvocationContextFactory()
EJBComponentDescriptionaddCurrentInvocationContextFactory in class EJBComponentDescriptionprotected void addCurrentInvocationContextFactory(ViewDescription view)
EJBComponentDescriptionaddCurrentInvocationContextFactory in class EJBComponentDescriptionview - The view for which the interceptor has to be setuppublic boolean isSession()
isSession in class EJBComponentDescriptionpublic boolean isSingleton()
isSingleton in class EJBComponentDescriptionpublic boolean isStateful()
isStateful in class EJBComponentDescriptionpublic boolean isStateless()
isStateless in class EJBComponentDescriptionpublic org.jboss.metadata.ejb.spec.SessionBeanMetaData getDescriptorData()
getDescriptorData in class EJBComponentDescriptionCopyright © 2021 JBoss by Red Hat. All rights reserved.