public abstract class EJBComponentDescription extends ComponentDescription
Constructor and Description |
---|
EJBComponentDescription(String componentName,
String componentClassName,
EjbJarDescription ejbJarDescription,
org.jboss.msc.service.ServiceName deploymentUnitServiceName,
org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData descriptorData)
Construct a new instance.
|
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 EJBComponentDescription(String componentName, String componentClassName, EjbJarDescription ejbJarDescription, org.jboss.msc.service.ServiceName deploymentUnitServiceName, org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData descriptorData)
componentName
- the component namecomponentClassName
- the component instance class nameejbJarDescription
- the moduledeploymentUnitServiceName
- descriptorData
- the optional descriptor metadatapublic void addLocalHome(String localHome)
public void addRemoteHome(String remoteHome)
public void addEjbLocalObjectView(String viewClassName)
public void addEjbObjectView(String viewClassName)
public javax.ejb.TransactionManagementType getTransactionManagementType()
public void setTransactionManagementType(javax.ejb.TransactionManagementType transactionManagementType)
public String getEJBName()
public String getEJBClassName()
protected void setupViewInterceptors(EJBViewDescription view)
protected void setupClientViewInterceptors(ViewDescription view)
protected abstract void addCurrentInvocationContextFactory()
protected abstract void addCurrentInvocationContextFactory(ViewDescription view)
view
- The view for which the interceptor has to be setupprotected void addRemoteTransactionsRepositoryDependency()
EJBRemoteTransactionsRepository
service,
if the EJB exposes atleast one remote viewprotected void setupSecurityInterceptors(ViewDescription view)
public boolean isEntity()
public boolean isMessageDriven()
public boolean isSession()
public boolean isSingleton()
public boolean isStateful()
public boolean isStateless()
public void addDeclaredRoles(String... roles)
public void setDeclaredRoles(Collection<String> roles)
public void setRunAs(String role)
public String getRunAs()
public void setRunAsPrincipal(String principal)
public String getRunAsPrincipal()
public void setSecurityDomain(String securityDomain)
public String getSecurityDomain()
public org.jboss.metadata.javaee.spec.SecurityRolesMetaData getSecurityRoles()
public void setSecurityRoles(org.jboss.metadata.javaee.spec.SecurityRolesMetaData securityRoles)
protected EJBViewDescription registerView(String viewClassName, MethodIntf viewType)
protected EJBViewDescription registerView(String viewClassName, MethodIntf viewType, boolean ejb2xView)
public Map<String,Collection<String>> getSecurityRoleLinks()
public boolean isSecurityEnabled()
public javax.ejb.TimerService getTimerService()
public void setTimerService(javax.ejb.TimerService timerService)
public org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData getDescriptorData()
public Method getTimeoutMethod()
public void setTimeoutMethod(Method timeoutMethod)
public EJBViewDescription getEjbLocalView()
public EjbHomeViewDescription getEjbLocalHomeView()
public EjbHomeViewDescription getEjbHomeView()
public EJBViewDescription getEjbRemoteView()
public boolean isExposedViaIiop()
public void setExposedViaIiop(boolean exposedViaIiop)
public ApplicableMethodInformation<javax.ejb.TransactionAttributeType> getTransactionAttributes()
public ApplicableMethodInformation<Integer> getTransactionTimeouts()
public ApplicableMethodInformation<EJBMethodSecurityAttribute> getDescriptorMethodPermissions()
public ApplicableMethodInformation<EJBMethodSecurityAttribute> getAnnotationMethodPermissions()
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.