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.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addCurrentInvocationContextFactory()
Setup the current invocation context interceptor, which will be used during the post-construct
lifecycle of the component instance
|
protected abstract void |
addCurrentInvocationContextFactory(ViewDescription view)
Setup the current invocation context interceptor, which will be used during the invocation on the view (methods)
|
void |
addDeclaredRoles(String... roles) |
void |
addEjbLocalObjectView(String viewClassName) |
void |
addEjbObjectView(String viewClassName) |
void |
addLocalHome(String localHome) |
void |
addRemoteHome(String remoteHome) |
protected void |
addRemoteTransactionsRepositoryDependency()
Adds a dependency for the ComponentConfiguration, on the
EJBRemoteTransactionsRepository service,
if the EJB exposes at least one remote view |
void |
addScheduleMethod(Method method,
AutoTimer timer) |
protected void |
addServerSecurityManagerDependency()
Sets up a
ComponentConfigurator which then sets up the dependency on the ServerSecurityManager service for the EJBComponentCreateService |
protected void |
addTransactionManagerDependencies()
Sets up a
ComponentConfigurator which then sets up the relevant dependencies on the transaction manager services for the EJBComponentCreateService |
void |
excludeClassLevelContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) |
void |
excludeDefaultContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) |
Set<InterceptorDescription> |
getAllContainerInterceptors()
Returns a combined map of class and method level container interceptors
|
ApplicableMethodInformation<EJBMethodSecurityAttribute> |
getAnnotationMethodPermissions() |
List<InterceptorDescription> |
getClassLevelContainerInterceptors() |
Set<String> |
getDeclaredRoles() |
List<InterceptorDescription> |
getDefaultContainerInterceptors() |
org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData |
getDescriptorData() |
ApplicableMethodInformation<EJBMethodSecurityAttribute> |
getDescriptorMethodPermissions() |
String |
getEJBClassName() |
EjbHomeViewDescription |
getEjbHomeView() |
EjbHomeViewDescription |
getEjbLocalHomeView() |
EJBViewDescription |
getEjbLocalView() |
String |
getEJBName() |
EJBViewDescription |
getEjbRemoteView() |
Map<org.jboss.invocation.proxy.MethodIdentifier,List<InterceptorDescription>> |
getMethodLevelContainerInterceptors() |
String |
getPolicyContextID() |
String |
getRunAs() |
String |
getRunAsPrincipal() |
Map<Method,List<AutoTimer>> |
getScheduleMethods() |
String |
getSecurityDomain()
Returns the security domain that is applicable for this bean.
|
Map<String,Collection<String>> |
getSecurityRoleLinks() |
org.jboss.metadata.javaee.spec.SecurityRolesMetaData |
getSecurityRoles() |
ShutDownInterceptorFactory |
getShutDownInterceptorFactory() |
Method |
getTimeoutMethod() |
Set<org.jboss.invocation.proxy.MethodIdentifier> |
getTimerMethods() |
javax.ejb.TimerService |
getTimerService() |
ApplicableMethodInformation<javax.ejb.TransactionAttributeType> |
getTransactionAttributes() |
javax.ejb.TransactionManagementType |
getTransactionManagementType() |
ApplicableMethodInformation<Integer> |
getTransactionTimeouts() |
boolean |
hasBeanLevelSecurityMetadata()
Returns true if this component description has any security metadata configured at the EJB level.
|
boolean |
isEntity() |
boolean |
isExcludeClassLevelContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) |
boolean |
isExcludeDefaultContainerInterceptors() |
boolean |
isExcludeDefaultContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) |
boolean |
isExplicitSecurityDomainConfigured()
Returns true if this bean has been explicitly configured with a security domain via the
SecurityDomain annotation or via the jboss-ejb3.xml deployment descriptor. |
boolean |
isExposedViaIiop() |
boolean |
isMessageDriven() |
Boolean |
isMissingMethodPermissionsDeniedAccess() |
boolean |
isSession() |
boolean |
isSingleton() |
boolean |
isStateful() |
boolean |
isStateless() |
void |
linkSecurityRoles(String fromRole,
String toRole) |
protected EJBViewDescription |
registerView(String viewClassName,
MethodIntf viewType) |
protected EJBViewDescription |
registerView(String viewClassName,
MethodIntf viewType,
boolean ejb2xView) |
void |
setClassLevelContainerInterceptors(List<InterceptorDescription> containerInterceptors) |
void |
setDeclaredRoles(Collection<String> roles) |
void |
setDefaultContainerInterceptors(List<InterceptorDescription> defaultInterceptors) |
void |
setDefaultSecurityDomain(String defaultSecurityDomain) |
void |
setExcludeDefaultContainerInterceptors(boolean excludeDefaultContainerInterceptors) |
void |
setExposedViaIiop(boolean exposedViaIiop) |
void |
setMethodContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier,
List<InterceptorDescription> containerInterceptors) |
void |
setMissingMethodPermissionsDenyAccess(Boolean missingMethodPermissionsDenyAccess) |
void |
setPolicyContextID(String policyContextID) |
void |
setRunAs(String role) |
void |
setRunAsPrincipal(String principal) |
void |
setSecurityDomain(String securityDomain) |
void |
setSecurityRoles(org.jboss.metadata.javaee.spec.SecurityRolesMetaData securityRoles) |
void |
setTimeoutMethod(Method timeoutMethod) |
void |
setTimerService(javax.ejb.TimerService timerService) |
void |
setTransactionManagementType(javax.ejb.TransactionManagementType transactionManagementType) |
protected void |
setupClientViewInterceptors(ViewDescription view) |
protected void |
setupRemoteView(EJBViewDescription viewDescription) |
protected void |
setupSecurityInterceptors(ViewDescription view) |
protected void |
setupViewInterceptors(EJBViewDescription view) |
String |
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, isCDIInterceptorEnabled, isExcludeClassInterceptors, isExcludeDefaultInterceptors, isExcludeDefaultInterceptors, isIgnoreLifecycleInterceptors, isIntercepted, isOptional, isPassivationApplicable, isTimerServiceApplicable, isTimerServiceRequired, mergeInterceptorConfig, setBeanDeploymentArchiveId, setClassInterceptors, setContextServiceName, setDefaultInterceptors, setDeploymentDescriptorEnvironment, setExcludeDefaultInterceptors, setIgnoreLifecycleInterceptors, 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 at least one remote viewprotected void addTransactionManagerDependencies()
ComponentConfigurator
which then sets up the relevant dependencies on the transaction manager services for the EJBComponentCreateService
protected void addServerSecurityManagerDependency()
ComponentConfigurator
which then sets up the dependency on the ServerSecurityManager service for the EJBComponentCreateService
protected 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 void setDefaultSecurityDomain(String defaultSecurityDomain)
public String getSecurityDomain()
public boolean isExplicitSecurityDomainConfigured()
SecurityDomain
annotation or via the jboss-ejb3.xml deployment descriptor.
Else returns false.public void setMissingMethodPermissionsDenyAccess(Boolean missingMethodPermissionsDenyAccess)
public Boolean isMissingMethodPermissionsDeniedAccess()
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)
protected void setupRemoteView(EJBViewDescription viewDescription)
public Map<String,Collection<String>> getSecurityRoleLinks()
public boolean hasBeanLevelSecurityMetadata()
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()
public void setDefaultContainerInterceptors(List<InterceptorDescription> defaultInterceptors)
public List<InterceptorDescription> getDefaultContainerInterceptors()
public void setClassLevelContainerInterceptors(List<InterceptorDescription> containerInterceptors)
public List<InterceptorDescription> getClassLevelContainerInterceptors()
public void setExcludeDefaultContainerInterceptors(boolean excludeDefaultContainerInterceptors)
public boolean isExcludeDefaultContainerInterceptors()
public void excludeDefaultContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier)
public boolean isExcludeDefaultContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier)
public void excludeClassLevelContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier)
public boolean isExcludeClassLevelContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier)
public Map<org.jboss.invocation.proxy.MethodIdentifier,List<InterceptorDescription>> getMethodLevelContainerInterceptors()
public void setMethodContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier, List<InterceptorDescription> containerInterceptors)
public Set<org.jboss.invocation.proxy.MethodIdentifier> getTimerMethods()
getTimerMethods
in class ComponentDescription
public Set<InterceptorDescription> getAllContainerInterceptors()
public String getPolicyContextID()
public void setPolicyContextID(String policyContextID)
public ShutDownInterceptorFactory getShutDownInterceptorFactory()
Copyright © 2017 JBoss by Red Hat. All rights reserved.