Package org.jboss.as.ejb3.component
Class EJBComponent
- java.lang.Object
-
- org.jboss.as.ee.component.BasicComponent
-
- org.jboss.as.ejb3.component.EJBComponent
-
- All Implemented Interfaces:
Component,org.jboss.as.server.suspend.ServerActivityCallback
- Direct Known Subclasses:
MessageDrivenComponent,SessionBeanComponent
public abstract class EJBComponent extends BasicComponent implements org.jboss.as.server.suspend.ServerActivityCallback
- Author:
- Carlo de Wolf, Richard Opalka
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEJBComponent(EJBComponentCreateService ejbComponentCreateService)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected <T> TcreateViewInstanceProxy(Class<T> viewInterface, Map<Object,Object> contextData)protected <T> TcreateViewInstanceProxy(Class<T> viewInterface, Map<Object,Object> contextData, org.jboss.msc.service.ServiceName serviceName)voiddone()AllowedMethodsInformationgetAllowedMethodsInformation()ApplicationExceptionDetailsgetApplicationException(Class<?> exceptionClass, Method invokedMethod)StringgetApplicationName()PrincipalgetCallerPrincipal()EJBComponentDescriptiongetComponentDescription()org.wildfly.extension.requestcontroller.ControlPointgetControlPoint()protected jakarta.ejb.TransactionAttributeTypegetCurrentTransactionAttribute()StringgetDistinctName()StringgetEarApplicationName()jakarta.ejb.EJBHomegetEJBHome()jakarta.ejb.EJBLocalHomegetEJBLocalHome()Class<?>getEjbLocalObjectType()org.jboss.msc.service.ServiceNamegetEjbLocalObjectViewServiceName()Class<?>getEjbObjectType()org.jboss.msc.service.ServiceNamegetEjbObjectViewServiceName()EJBSuspendHandlerServicegetEjbSuspendHandlerService()Function<org.wildfly.security.auth.server.SecurityIdentity,Set<org.wildfly.security.auth.server.SecurityIdentity>>getIdentityOutflowFunction()org.wildfly.security.auth.server.SecurityIdentitygetIncomingRunAsIdentity()InvocationMetricsgetInvocationMetrics()StringgetModuleName()booleangetRollbackOnly()org.wildfly.security.auth.server.SecurityDomaingetSecurityDomain()EJBSecurityMetaDatagetSecurityMetaData()protected ShutDownInterceptorFactorygetShutDownInterceptorFactory()Map<Method,org.jboss.invocation.InterceptorFactory>getTimeoutInterceptors()MethodgetTimeoutMethod()jakarta.ejb.TimerServicegetTimerService()jakarta.ejb.TransactionAttributeTypegetTransactionAttributeType(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, Method method)jakarta.ejb.TransactionAttributeTypegetTransactionAttributeType(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, org.jboss.invocation.proxy.MethodIdentifier method)jakarta.ejb.TransactionAttributeTypegetTransactionAttributeType(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, org.jboss.invocation.proxy.MethodIdentifier method, jakarta.ejb.TransactionAttributeType defaultType)jakarta.transaction.TransactionManagergetTransactionManager()Deprecated.UseContextTransactionManager.getInstance()instead.jakarta.transaction.TransactionSynchronizationRegistrygetTransactionSynchronizationRegistry()intgetTransactionTimeout(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, Method method)intgetTransactionTimeout(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, org.jboss.invocation.proxy.MethodIdentifier method)jakarta.transaction.UserTransactiongetUserTransaction()voidinit()booleanisBeanManagedTransaction()booleanisCallerInRole(String roleName)booleanisExceptionLoggingEnabled()booleanisSecurityDomainKnown()booleanisStatisticsEnabled()booleanisTransactionAttributeTypeExplicit(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, org.jboss.invocation.proxy.MethodIdentifier method)Objectlookup(String name)voidsetIncomingRunAsIdentity(org.wildfly.security.auth.server.SecurityIdentity identity)voidsetRollbackOnly()voidstop()-
Methods inherited from class org.jboss.as.ee.component.BasicComponent
componentInstanceCreated, constructComponentInstance, constructComponentInstance, createInstance, createInstance, createInterceptors, getComponentClass, getComponentName, getCreateServiceName, getInstance, getNamespaceContextSelector, instantiateComponentInstance, serviceNameOf, start, toString, waitForComponentStart
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.as.ee.component.Component
isRemotable
-
-
-
-
Constructor Detail
-
EJBComponent
protected EJBComponent(EJBComponentCreateService ejbComponentCreateService)
Construct a new instance.- Parameters:
ejbComponentCreateService- the component configuration
-
-
Method Detail
-
createViewInstanceProxy
protected <T> T createViewInstanceProxy(Class<T> viewInterface, Map<Object,Object> contextData)
-
createViewInstanceProxy
protected <T> T createViewInstanceProxy(Class<T> viewInterface, Map<Object,Object> contextData, org.jboss.msc.service.ServiceName serviceName)
-
getApplicationException
public ApplicationExceptionDetails getApplicationException(Class<?> exceptionClass, Method invokedMethod)
-
getCallerPrincipal
public Principal getCallerPrincipal()
-
getIncomingRunAsIdentity
public org.wildfly.security.auth.server.SecurityIdentity getIncomingRunAsIdentity()
-
setIncomingRunAsIdentity
public void setIncomingRunAsIdentity(org.wildfly.security.auth.server.SecurityIdentity identity)
-
getCurrentTransactionAttribute
protected jakarta.ejb.TransactionAttributeType getCurrentTransactionAttribute()
-
getEJBHome
public jakarta.ejb.EJBHome getEJBHome() throws IllegalStateException- Throws:
IllegalStateException
-
getEjbObjectType
public Class<?> getEjbObjectType()
-
getEjbLocalObjectType
public Class<?> getEjbLocalObjectType()
-
getEJBLocalHome
public jakarta.ejb.EJBLocalHome getEJBLocalHome() throws IllegalStateException- Throws:
IllegalStateException
-
getRollbackOnly
public boolean getRollbackOnly() throws IllegalStateException- Throws:
IllegalStateException
-
getTimerService
public jakarta.ejb.TimerService getTimerService() throws IllegalStateException- Throws:
IllegalStateException
-
getTransactionAttributeType
public jakarta.ejb.TransactionAttributeType getTransactionAttributeType(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, Method method)
-
getTransactionAttributeType
public jakarta.ejb.TransactionAttributeType getTransactionAttributeType(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, org.jboss.invocation.proxy.MethodIdentifier method)
-
getTransactionAttributeType
public jakarta.ejb.TransactionAttributeType getTransactionAttributeType(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, org.jboss.invocation.proxy.MethodIdentifier method, jakarta.ejb.TransactionAttributeType defaultType)
-
isTransactionAttributeTypeExplicit
public boolean isTransactionAttributeTypeExplicit(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, org.jboss.invocation.proxy.MethodIdentifier method)
-
getTransactionManager
@Deprecated public jakarta.transaction.TransactionManager getTransactionManager()
Deprecated.UseContextTransactionManager.getInstance()instead.- Returns:
- the value of
ContextTransactionManager.getInstance()
-
getTransactionSynchronizationRegistry
public jakarta.transaction.TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
-
getTransactionTimeout
public int getTransactionTimeout(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, Method method)
-
getTransactionTimeout
public int getTransactionTimeout(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, org.jboss.invocation.proxy.MethodIdentifier method)
-
getUserTransaction
public jakarta.transaction.UserTransaction getUserTransaction() throws IllegalStateException- Throws:
IllegalStateException
-
isBeanManagedTransaction
public boolean isBeanManagedTransaction()
-
isCallerInRole
public boolean isCallerInRole(String roleName) throws IllegalStateException
- Throws:
IllegalStateException
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
-
lookup
public Object lookup(String name) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException- Throws:
IllegalStateException
-
getSecurityMetaData
public EJBSecurityMetaData getSecurityMetaData()
-
getTimeoutMethod
public Method getTimeoutMethod()
-
getApplicationName
public String getApplicationName()
-
getEarApplicationName
public String getEarApplicationName()
-
getDistinctName
public String getDistinctName()
-
getModuleName
public String getModuleName()
-
getEjbLocalObjectViewServiceName
public org.jboss.msc.service.ServiceName getEjbLocalObjectViewServiceName()
-
getEjbObjectViewServiceName
public org.jboss.msc.service.ServiceName getEjbObjectViewServiceName()
-
getTimeoutInterceptors
public Map<Method,org.jboss.invocation.InterceptorFactory> getTimeoutInterceptors()
-
getAllowedMethodsInformation
public AllowedMethodsInformation getAllowedMethodsInformation()
-
getInvocationMetrics
public InvocationMetrics getInvocationMetrics()
-
getControlPoint
public org.wildfly.extension.requestcontroller.ControlPoint getControlPoint()
-
getSecurityDomain
public org.wildfly.security.auth.server.SecurityDomain getSecurityDomain()
-
isSecurityDomainKnown
public boolean isSecurityDomainKnown()
-
getIdentityOutflowFunction
public Function<org.wildfly.security.auth.server.SecurityIdentity,Set<org.wildfly.security.auth.server.SecurityIdentity>> getIdentityOutflowFunction()
-
init
public void init()
- Overrides:
initin classBasicComponent
-
stop
public final void stop()
- Specified by:
stopin interfaceComponent- Overrides:
stopin classBasicComponent
-
done
public void done()
- Specified by:
donein interfaceorg.jboss.as.server.suspend.ServerActivityCallback
-
isExceptionLoggingEnabled
public boolean isExceptionLoggingEnabled()
-
getShutDownInterceptorFactory
protected ShutDownInterceptorFactory getShutDownInterceptorFactory()
-
getEjbSuspendHandlerService
public EJBSuspendHandlerService getEjbSuspendHandlerService()
-
getComponentDescription
public EJBComponentDescription getComponentDescription()
-
-