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
ConstructorsModifierConstructorDescriptionprotectedEJBComponent(EJBComponentCreateService ejbComponentCreateService) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected <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()getApplicationException(Class<?> exceptionClass, Method invokedMethod) org.wildfly.extension.requestcontroller.ControlPointprotected jakarta.ejb.TransactionAttributeTypejakarta.ejb.EJBHomejakarta.ejb.EJBLocalHomeClass<?>org.jboss.msc.service.ServiceNameClass<?>org.jboss.msc.service.ServiceNameFunction<org.wildfly.security.auth.server.SecurityIdentity,Set<org.wildfly.security.auth.server.SecurityIdentity>> org.wildfly.security.auth.server.SecurityIdentitybooleanorg.wildfly.security.auth.server.SecurityDomainprotected ShutDownInterceptorFactoryjakarta.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.TransactionManagerDeprecated.jakarta.transaction.TransactionSynchronizationRegistryintgetTransactionTimeout(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.UserTransactionvoidinit()booleanbooleanisCallerInRole(String roleName) booleanbooleanbooleanbooleanisTransactionAttributeTypeExplicit(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, org.jboss.invocation.proxy.MethodIdentifier method) voidsetIncomingRunAsIdentity(org.wildfly.security.auth.server.SecurityIdentity identity) voidfinal 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, waitForComponentStartMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jboss.as.ee.component.Component
isRemotable
-
Constructor Details
-
EJBComponent
Construct a new instance.- Parameters:
ejbComponentCreateService- the component configuration
-
-
Method Details
-
createViewInstanceProxy
-
createViewInstanceProxy
-
getApplicationException
public ApplicationExceptionDetails getApplicationException(Class<?> exceptionClass, Method invokedMethod) -
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
- Throws:
IllegalStateException
-
getEjbObjectType
-
getEjbLocalObjectType
-
getEJBLocalHome
- Throws:
IllegalStateException
-
getRollbackOnly
- Throws:
IllegalStateException
-
getTimerService
-
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.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
- Throws:
IllegalStateException
-
isBeanManagedTransaction
public boolean isBeanManagedTransaction() -
isCallerInRole
- Throws:
IllegalStateException
-
isStatisticsEnabled
public boolean isStatisticsEnabled() -
lookup
- Throws:
IllegalArgumentException
-
setRollbackOnly
- Throws:
IllegalStateException
-
getSecurityMetaData
-
getTimeoutMethod
-
getApplicationName
-
getEarApplicationName
-
getDistinctName
-
getModuleName
-
getEjbLocalObjectViewServiceName
public org.jboss.msc.service.ServiceName getEjbLocalObjectViewServiceName() -
getEjbObjectViewServiceName
public org.jboss.msc.service.ServiceName getEjbObjectViewServiceName() -
getTimeoutInterceptors
-
getAllowedMethodsInformation
-
getInvocationMetrics
-
getControlPoint
public org.wildfly.extension.requestcontroller.ControlPoint getControlPoint() -
getSecurityDomain
public org.wildfly.security.auth.server.SecurityDomain getSecurityDomain() -
isSecurityDomainKnown
public boolean isSecurityDomainKnown() -
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
-
getEjbSuspendHandlerService
-
getComponentDescription
-
ContextTransactionManager.getInstance()instead.