public abstract class EJBComponentDescription extends ComponentDescription
| Constructor and Description |
|---|
EJBComponentDescription(String componentName,
String componentClassName,
EjbJarDescription ejbJarDescription,
org.jboss.as.server.deployment.DeploymentUnit deploymentUnit,
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) |
protected void |
addEJBSuspendHandlerDependency()
Sets up a
ComponentConfigurator which then sets up the dependency on the EJBSuspendHandlerService service for the EJBComponentCreateService |
void |
addLocalHome(String localHome) |
void |
addRemoteHome(String remoteHome) |
protected void |
addRemoteTransactionsDependency()
Adds a dependency for the ComponentConfiguration on the remote transaction 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() |
String |
getDefinedSecurityDomain() |
org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData |
getDescriptorData() |
ApplicableMethodInformation<EJBMethodSecurityAttribute> |
getDescriptorMethodPermissions() |
String |
getEJBClassName() |
EjbHomeViewDescription |
getEjbHomeView() |
EjbHomeViewDescription |
getEjbLocalHomeView() |
EJBViewDescription |
getEjbLocalView() |
String |
getEJBName() |
EJBViewDescription |
getEjbRemoteView() |
HashMap<Integer,org.jboss.invocation.InterceptorFactory> |
getElytronInterceptorFactories(String policyContextID,
boolean enableJacc,
boolean propagateSecurity) |
Map<org.jboss.invocation.proxy.MethodIdentifier,List<InterceptorDescription>> |
getMethodLevelContainerInterceptors() |
String |
getPolicyContextID() |
String |
getResolvedSecurityDomain()
Returns the security domain that is applicable for this bean.
|
String |
getRunAs() |
String |
getRunAsPrincipal() |
Map<Method,List<AutoTimer>> |
getScheduleMethods() |
org.jboss.msc.service.ServiceName |
getSecurityDomainServiceName() |
Map<String,Collection<String>> |
getSecurityRoleLinks() |
org.jboss.metadata.javaee.spec.SecurityRolesMetaData |
getSecurityRoles() |
ServerInterceptorCache |
getServerInterceptorCache() |
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 |
isExposedViaIiop() |
boolean |
isMessageDriven() |
Boolean |
isMissingMethodPermissionsDeniedAccess() |
boolean |
isOutflowSecurityDomainsConfigured() |
boolean |
isSecurityRequired() |
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) |
boolean |
requiresJacc() |
void |
setClassLevelContainerInterceptors(List<InterceptorDescription> containerInterceptors) |
void |
setDeclaredRoles(Collection<String> roles) |
void |
setDefaultContainerInterceptors(List<InterceptorDescription> defaultInterceptors) |
void |
setDefaultSecurityDomain(String defaultSecurityDomain) |
void |
setDefinedSecurityDomain(String definedSecurityDomain) |
void |
setExcludeDefaultContainerInterceptors(boolean excludeDefaultContainerInterceptors) |
void |
setExposedViaIiop(boolean exposedViaIiop) |
void |
setMethodContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier,
List<InterceptorDescription> containerInterceptors) |
void |
setMissingMethodPermissionsDenyAccess(Boolean missingMethodPermissionsDenyAccess) |
void |
setOutflowSecurityDomainsConfigured(BooleanSupplier outflowSecurityDomainsConfigured) |
void |
setPolicyContextID(String policyContextID) |
void |
setRequiresJacc(boolean requiresJacc) |
void |
setRunAs(String role) |
void |
setRunAsPrincipal(String principal) |
void |
setSecurityDomainServiceName(org.jboss.msc.service.ServiceName securityDomainServiceName) |
void |
setSecurityRequired(boolean securityRequired) |
void |
setSecurityRoles(org.jboss.metadata.javaee.spec.SecurityRolesMetaData securityRoles) |
void |
setServerInterceptorCache(ServerInterceptorCache serverInterceptorCache) |
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, setNamingModepublic EJBComponentDescription(String componentName, String componentClassName, EjbJarDescription ejbJarDescription, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, 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 addRemoteTransactionsDependency()
protected void addTransactionManagerDependencies()
ComponentConfigurator which then sets up the relevant dependencies on the transaction manager services for the EJBComponentCreateServiceprotected void addEJBSuspendHandlerDependency()
ComponentConfigurator which then sets up the dependency on the EJBSuspendHandlerService service for the EJBComponentCreateServiceprotected void addServerSecurityManagerDependency()
ComponentConfigurator which then sets up the dependency on the ServerSecurityManager service for the EJBComponentCreateServiceprotected 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 setDefaultSecurityDomain(String defaultSecurityDomain)
public void setOutflowSecurityDomainsConfigured(BooleanSupplier outflowSecurityDomainsConfigured)
public boolean isOutflowSecurityDomainsConfigured()
public String getResolvedSecurityDomain()
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)
public void setSecurityDomainServiceName(org.jboss.msc.service.ServiceName securityDomainServiceName)
public org.jboss.msc.service.ServiceName getSecurityDomainServiceName()
public void setDefinedSecurityDomain(String definedSecurityDomain)
public String getDefinedSecurityDomain()
public boolean requiresJacc()
public void setRequiresJacc(boolean requiresJacc)
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 ComponentDescriptionpublic Set<InterceptorDescription> getAllContainerInterceptors()
public ServerInterceptorCache getServerInterceptorCache()
public void setServerInterceptorCache(ServerInterceptorCache serverInterceptorCache)
public String getPolicyContextID()
public void setPolicyContextID(String policyContextID)
public ShutDownInterceptorFactory getShutDownInterceptorFactory()
public HashMap<Integer,org.jboss.invocation.InterceptorFactory> getElytronInterceptorFactories(String policyContextID, boolean enableJacc, boolean propagateSecurity)
public void setSecurityRequired(boolean securityRequired)
public boolean isSecurityRequired()
Copyright © 2021 JBoss by Red Hat. All rights reserved.