Class UserTransactionAccessControlService

java.lang.Object
org.jboss.as.txn.service.UserTransactionAccessControlService
All Implemented Interfaces:
org.jboss.msc.Service

public class UserTransactionAccessControlService extends Object implements org.jboss.msc.Service
Allows enabling/disabling access to the UserTransaction at runtime. Typically, components (like the Jakarta Enterprise Beans component), at runtime, based on a certain criteria decide whether or not access to the UserTransaction is allowed during an invocation associated with a thread. The UserTransactionService and the UserTransactionBindingService which are responsible for handing out the UserTransaction use this service to decide whether or not they should hand out the UserTransaction
Author:
Jaikiran Pai, Eduardo Martins, Richard Opalka
  • Field Details

    • SERVICE_NAME

      public static final org.jboss.msc.service.ServiceName SERVICE_NAME
  • Method Details

    • start

      public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
      Specified by:
      start in interface org.jboss.msc.Service
      Throws:
      org.jboss.msc.service.StartException
    • stop

      public void stop(org.jboss.msc.service.StopContext context)
      Specified by:
      stop in interface org.jboss.msc.Service
    • getAccessControl

      public UserTransactionAccessControl getAccessControl()
      Returns:
    • setAccessControl

      public void setAccessControl(UserTransactionAccessControl accessControl)
      Parameters:
      accessControl -
    • authorizeAccess

      public void authorizeAccess()
      Authorize access of user transaction
    • addService

      public static void addService(org.jboss.as.controller.CapabilityServiceTarget target)