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 Details

    • EJBComponent

      protected EJBComponent(EJBComponentCreateService ejbComponentCreateService)
      Construct a new instance.
      Parameters:
      ejbComponentCreateService - the component configuration
  • Method Details

    • 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 ManagedTimerService 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 public jakarta.transaction.TransactionManager getTransactionManager()
      Deprecated.
      Use ContextTransactionManager.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:
      init in class BasicComponent
    • stop

      public final void stop()
      Specified by:
      stop in interface Component
      Overrides:
      stop in class BasicComponent
    • done

      public void done()
      Specified by:
      done in interface org.jboss.as.server.suspend.ServerActivityCallback
    • isExceptionLoggingEnabled

      public boolean isExceptionLoggingEnabled()
    • getShutDownInterceptorFactory

      protected ShutDownInterceptorFactory getShutDownInterceptorFactory()
    • getEjbSuspendHandlerService

      public EJBSuspendHandlerService getEjbSuspendHandlerService()
    • getComponentDescription

      public EJBComponentDescription getComponentDescription()