Package org.jboss.as.ejb3.component
Class EJBComponentDescription
java.lang.Object
org.jboss.as.ee.component.ComponentDescription
org.jboss.as.ejb3.component.EJBComponentDescription
- All Implemented Interfaces:
ResourceInjectionTarget
- Direct Known Subclasses:
MessageDrivenComponentDescription,SessionBeanComponentDescription
- Author:
- Carlo de Wolf NOTE: References in this document to Enterprise JavaBeans (EJB) refer to the Jakarta Enterprise Beans unless otherwise noted.
-
Constructor Summary
ConstructorsConstructorDescriptionEJBComponentDescription(String componentName, String componentClassName, EjbJarDescription ejbJarDescription, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData descriptorData) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidSetup the current invocation context interceptor, which will be used during the post-construct lifecycle of the component instanceprotected abstract voidSetup the current invocation context interceptor, which will be used during the invocation on the view (methods)voidaddDeclaredRoles(String... roles) voidaddEjbLocalObjectView(String viewClassName) voidaddEjbObjectView(String viewClassName) protected voidSets up aComponentConfiguratorwhich then sets up the dependency on the EJBSuspendHandlerService service for theEJBComponentCreateServicevoidaddLocalHome(String localHome) voidaddRemoteHome(String remoteHome) protected voidAdds a dependency for the ComponentConfiguration on the remote transaction service if the EJB exposes at least one remote viewvoidaddScheduleMethod(Method method, AutoTimer timer) protected voidSets up aComponentConfiguratorwhich then sets up the relevant dependencies on the transaction manager services for theEJBComponentCreateServicevoidexcludeClassLevelContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) voidexcludeDefaultContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) Returns a combined map of class and method level container interceptorsorg.jboss.metadata.ejb.spec.EnterpriseBeanMetaDatagetElytronInterceptorFactories(String policyContextID, boolean enableJacc, boolean propagateSecurity) Map<org.jboss.invocation.proxy.MethodIdentifier,List<InterceptorDescription>> Returns the security domain that is applicable for this bean.getRunAs()org.jboss.msc.service.ServiceNameorg.jboss.metadata.javaee.spec.SecurityRolesMetaDataSet<org.jboss.invocation.proxy.MethodIdentifier>org.jboss.as.controller.registry.ResourceApplicableMethodInformation<jakarta.ejb.TransactionAttributeType>jakarta.ejb.TransactionManagementTypebooleanReturns true if this component description has any security metadata configured at the EJB level.booleanisEntity()booleanisExcludeClassLevelContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) booleanbooleanisExcludeDefaultContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidlinkSecurityRoles(String fromRole, String toRole) protected EJBViewDescriptionregisterView(String viewClassName, org.jboss.metadata.ejb.spec.MethodInterfaceType viewType) protected EJBViewDescriptionregisterView(String viewClassName, org.jboss.metadata.ejb.spec.MethodInterfaceType viewType, boolean ejb2xView) booleanbooleanvoidsetClassLevelContainerInterceptors(List<InterceptorDescription> containerInterceptors) voidsetDeclaredRoles(Collection<String> roles) voidsetDefaultContainerInterceptors(List<InterceptorDescription> defaultInterceptors) voidsetDefaultSecurityDomain(String defaultSecurityDomain) voidsetDefinedSecurityDomain(String definedSecurityDomain) voidsetExcludeDefaultContainerInterceptors(boolean excludeDefaultContainerInterceptors) voidsetExposedViaIiop(boolean exposedViaIiop) voidsetLegacyCompliantPrincipalPropagation(boolean legacyCompliantPrincipalPropagation) voidsetMethodContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier, List<InterceptorDescription> containerInterceptors) voidsetMissingMethodPermissionsDenyAccess(Boolean missingMethodPermissionsDenyAccess) voidsetOutflowSecurityDomainsConfigured(BooleanSupplier outflowSecurityDomainsConfigured) voidsetRequiresJacc(boolean requiresJacc) voidvoidsetRunAsPrincipal(String principal) voidsetSecurityDomainServiceName(org.jboss.msc.service.ServiceName securityDomainServiceName) voidsetSecurityRequired(boolean securityRequired) voidsetSecurityRoles(org.jboss.metadata.javaee.spec.SecurityRolesMetaData securityRoles) voidsetServerInterceptorCache(ServerInterceptorCache serverInterceptorCache) voidsetTimeoutMethod(Method timeoutMethod) voidsetTimerServiceResource(org.jboss.as.controller.registry.Resource timerServiceResource) voidsetTransactionManagementType(jakarta.ejb.TransactionManagementType transactionManagementType) protected voidprotected voidsetupRemoteView(EJBViewDescription viewDescription) protected voidprotected voidtoString()Methods inherited from class org.jboss.as.ee.component.ComponentDescription
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
-
Constructor Details
-
EJBComponentDescription
public 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.- Parameters:
componentName- the component namecomponentClassName- the component instance class nameejbJarDescription- the moduledeploymentUnitServiceName-descriptorData- the optional descriptor metadata
-
-
Method Details
-
addLocalHome
-
addRemoteHome
-
addEjbLocalObjectView
-
addEjbObjectView
-
getTransactionManagementType
public jakarta.ejb.TransactionManagementType getTransactionManagementType() -
setTransactionManagementType
public void setTransactionManagementType(jakarta.ejb.TransactionManagementType transactionManagementType) -
getEJBName
-
getEJBClassName
-
setupViewInterceptors
-
setupClientViewInterceptors
-
addCurrentInvocationContextFactory
protected abstract void addCurrentInvocationContextFactory()Setup the current invocation context interceptor, which will be used during the post-construct lifecycle of the component instance -
addCurrentInvocationContextFactory
Setup the current invocation context interceptor, which will be used during the invocation on the view (methods)- Parameters:
view- The view for which the interceptor has to be setup
-
addRemoteTransactionsDependency
protected void addRemoteTransactionsDependency()Adds a dependency for the ComponentConfiguration on the remote transaction service if the EJB exposes at least one remote view -
addTransactionManagerDependencies
protected void addTransactionManagerDependencies()Sets up aComponentConfiguratorwhich then sets up the relevant dependencies on the transaction manager services for theEJBComponentCreateService -
addEJBSuspendHandlerDependency
protected void addEJBSuspendHandlerDependency()Sets up aComponentConfiguratorwhich then sets up the dependency on the EJBSuspendHandlerService service for theEJBComponentCreateService -
setupSecurityInterceptors
-
isEntity
public boolean isEntity() -
isMessageDriven
public boolean isMessageDriven() -
isSession
public boolean isSession() -
isSingleton
public boolean isSingleton() -
isStateful
public boolean isStateful() -
isStateless
public boolean isStateless() -
addDeclaredRoles
-
setDeclaredRoles
-
getDeclaredRoles
-
setRunAs
-
getRunAs
-
setRunAsPrincipal
-
getRunAsPrincipal
-
setDefaultSecurityDomain
-
setOutflowSecurityDomainsConfigured
-
isOutflowSecurityDomainsConfigured
public boolean isOutflowSecurityDomainsConfigured() -
getResolvedSecurityDomain
Returns the security domain that is applicable for this bean. In the absence of any explicit configuration of a security domain for this bean, this method returns the default security domain (if any) that's configured for all beans in the EJB3 subsystem- Returns:
-
setMissingMethodPermissionsDenyAccess
-
isMissingMethodPermissionsDeniedAccess
-
getSecurityRoles
public org.jboss.metadata.javaee.spec.SecurityRolesMetaData getSecurityRoles() -
setSecurityRoles
public void setSecurityRoles(org.jboss.metadata.javaee.spec.SecurityRolesMetaData securityRoles) -
setSecurityDomainServiceName
public void setSecurityDomainServiceName(org.jboss.msc.service.ServiceName securityDomainServiceName) -
getSecurityDomainServiceName
public org.jboss.msc.service.ServiceName getSecurityDomainServiceName() -
setDefinedSecurityDomain
-
getDefinedSecurityDomain
-
requiresJacc
public boolean requiresJacc() -
setRequiresJacc
public void setRequiresJacc(boolean requiresJacc) -
setLegacyCompliantPrincipalPropagation
public void setLegacyCompliantPrincipalPropagation(boolean legacyCompliantPrincipalPropagation) -
requiresLegacyCompliantPrincipalPropagation
public boolean requiresLegacyCompliantPrincipalPropagation() -
linkSecurityRoles
-
registerView
protected EJBViewDescription registerView(String viewClassName, org.jboss.metadata.ejb.spec.MethodInterfaceType viewType) -
registerView
protected EJBViewDescription registerView(String viewClassName, org.jboss.metadata.ejb.spec.MethodInterfaceType viewType, boolean ejb2xView) -
setupRemoteView
-
getSecurityRoleLinks
-
hasBeanLevelSecurityMetadata
public boolean hasBeanLevelSecurityMetadata()Returns true if this component description has any security metadata configured at the EJB level. Else returns false. Note that this method does *not* consider method level security metadata.- Returns:
-
getTimerServiceResource
public org.jboss.as.controller.registry.Resource getTimerServiceResource() -
setTimerServiceResource
public void setTimerServiceResource(org.jboss.as.controller.registry.Resource timerServiceResource) -
getDescriptorData
public org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData getDescriptorData() -
getTimeoutMethod
-
setTimeoutMethod
-
getScheduleMethods
-
addScheduleMethod
-
getEjbLocalView
-
getEjbLocalHomeView
-
getEjbHomeView
-
getEjbRemoteView
-
isExposedViaIiop
public boolean isExposedViaIiop() -
setExposedViaIiop
public void setExposedViaIiop(boolean exposedViaIiop) -
getTransactionAttributes
-
getTransactionTimeouts
-
getDescriptorMethodPermissions
-
getAnnotationMethodPermissions
-
setDefaultContainerInterceptors
-
getDefaultContainerInterceptors
-
setClassLevelContainerInterceptors
-
getClassLevelContainerInterceptors
-
setExcludeDefaultContainerInterceptors
public void setExcludeDefaultContainerInterceptors(boolean excludeDefaultContainerInterceptors) -
isExcludeDefaultContainerInterceptors
public boolean isExcludeDefaultContainerInterceptors() -
excludeDefaultContainerInterceptors
public void excludeDefaultContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) -
isExcludeDefaultContainerInterceptors
public boolean isExcludeDefaultContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) -
excludeClassLevelContainerInterceptors
public void excludeClassLevelContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) -
isExcludeClassLevelContainerInterceptors
public boolean isExcludeClassLevelContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier) -
getMethodLevelContainerInterceptors
public Map<org.jboss.invocation.proxy.MethodIdentifier,List<InterceptorDescription>> getMethodLevelContainerInterceptors() -
setMethodContainerInterceptors
public void setMethodContainerInterceptors(org.jboss.invocation.proxy.MethodIdentifier methodIdentifier, List<InterceptorDescription> containerInterceptors) -
getTimerMethods
- Overrides:
getTimerMethodsin classComponentDescription
-
getAllContainerInterceptors
Returns a combined map of class and method level container interceptors -
getServerInterceptorCache
-
setServerInterceptorCache
-
getShutDownInterceptorFactory
-
toString
-
getElytronInterceptorFactories
-
setSecurityRequired
public void setSecurityRequired(boolean securityRequired) -
isSecurityRequired
public boolean isSecurityRequired()
-