Package org.jboss.as.txn.service
Class UserTransactionAccessControlService
java.lang.Object
org.jboss.as.txn.service.UserTransactionAccessControlService
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<UserTransactionAccessControlService>,org.jboss.msc.value.Value<UserTransactionAccessControlService>
public class UserTransactionAccessControlService
extends Object
implements org.jboss.msc.service.Service<UserTransactionAccessControlService>
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
-
Field Summary
FieldsFields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAuthorize access of user transactiongetValue()voidsetAccessControl(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
-
-
Constructor Details
-
UserTransactionAccessControlService
public UserTransactionAccessControlService()
-
-
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
-
getValue
public UserTransactionAccessControlService getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<UserTransactionAccessControlService>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getAccessControl
- Returns:
-
setAccessControl
- Parameters:
accessControl-
-
authorizeAccess
public void authorizeAccess()Authorize access of user transaction
-