public class UserTransactionAccessControlService extends Object implements org.jboss.msc.service.Service<UserTransactionAccessControlService>
UserTransaction
at runtime. Typically, components (like the
EJB 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
Modifier and Type | Field and Description |
---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
Constructor and Description |
---|
UserTransactionAccessControlService() |
Modifier and Type | Method and Description |
---|---|
void |
authorizeAccess()
Authorize access of user transaction
|
UserTransactionAccessControl |
getAccessControl() |
UserTransactionAccessControlService |
getValue() |
void |
setAccessControl(UserTransactionAccessControl accessControl) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<UserTransactionAccessControlService>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<UserTransactionAccessControlService>
public UserTransactionAccessControlService getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<UserTransactionAccessControlService>
IllegalStateException
IllegalArgumentException
public UserTransactionAccessControl getAccessControl()
public void setAccessControl(UserTransactionAccessControl accessControl)
accessControl
- public void authorizeAccess()
Copyright © 2018 JBoss by Red Hat. All rights reserved.