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.msc.service.ServiceName deploymentUnitServiceName,
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() |
EJBViewDescription |
addWebserviceEndpointView(String wsEndpointViewName) |
abstract boolean |
allowsConcurrentAccess()
Returns true if this session bean component type allows concurrent access to the component instances.
|
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. |
ClusteringInfo |
getClustering() |
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 |
setClustering(ClusteringInfo info) |
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, 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, toString
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, isExcludeClassInterceptors, isExcludeDefaultInterceptors, isExcludeDefaultInterceptors, isIntercepted, isOptional, isPassivationApplicable, isTimerServiceApplicable, setBeanDeploymentArchiveId, setClassInterceptors, setContextServiceName, setDefaultInterceptors, setDeploymentDescriptorEnvironment, setExcludeDefaultInterceptors, setMethodInterceptors, setNamingMode
public SessionBeanComponentDescription(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 abstract boolean allowsConcurrentAccess()
public void addLocalBusinessInterfaceViews(Collection<String> classNames)
public void addLocalBusinessInterfaceViews(String... classNames)
public void addNoInterfaceView()
public EJBViewDescription addWebserviceEndpointView()
public EJBViewDescription addWebserviceEndpointView(String wsEndpointViewName)
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()
SessionBeanComponentDescription
public 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 EJBComponentDescription
protected abstract ViewConfigurator getSessionBeanObjectViewConfigurator()
protected static void addTxManagementInterceptorForView(ViewDescription view)
view
- The EJB bean viewprotected void addCurrentInvocationContextFactory()
EJBComponentDescription
addCurrentInvocationContextFactory
in class EJBComponentDescription
protected void addCurrentInvocationContextFactory(ViewDescription view)
EJBComponentDescription
addCurrentInvocationContextFactory
in class EJBComponentDescription
view
- The view for which the interceptor has to be setuppublic boolean isSession()
isSession
in class EJBComponentDescription
public boolean isSingleton()
isSingleton
in class EJBComponentDescription
public boolean isStateful()
isStateful
in class EJBComponentDescription
public boolean isStateless()
isStateless
in class EJBComponentDescription
public org.jboss.metadata.ejb.spec.SessionBeanMetaData getDescriptorData()
getDescriptorData
in class EJBComponentDescription
public ClusteringInfo getClustering()
public void setClustering(ClusteringInfo info)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.