Package org.jboss.as.txn.service
Class UserTransactionAccessControlService
java.lang.Object
org.jboss.as.txn.service.UserTransactionAccessControlService
- All Implemented Interfaces:
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 Summary
FieldsFields inherited from interface org.jboss.msc.Service
NULL -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddService(org.jboss.as.controller.CapabilityServiceTarget target) voidAuthorize access of user transactionvoidsetAccessControl(UserTransactionAccessControl accessControl) voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
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:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getAccessControl
- Returns:
-
setAccessControl
- Parameters:
accessControl-
-
authorizeAccess
public void authorizeAccess()Authorize access of user transaction -
addService
public static void addService(org.jboss.as.controller.CapabilityServiceTarget target)
-