public class TransactionManager extends Object implements TransactionControl, org.glassfish.hk2.api.Context<TransactionScoped>
| Constructor and Description |
|---|
TransactionManager(org.glassfish.hk2.api.ServiceLocator sl,
org.glassfish.hk2.api.IterableProvider<TransactionMember.Wrapper> memberFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(org.glassfish.hk2.api.ActiveDescriptor key) |
Transaction |
current() |
void |
destroyOne(org.glassfish.hk2.api.ActiveDescriptor<?> key) |
<T> T |
findOrCreate(org.glassfish.hk2.api.ActiveDescriptor<T> key,
org.glassfish.hk2.api.ServiceHandle<?> root)
Get or provision an instance of the service identified by the instance of Key.
|
Class<? extends Annotation> |
getScope() |
boolean |
isActive() |
void |
shutdown() |
Transaction |
start() |
boolean |
supportsNullCreation() |
@Inject
public TransactionManager(org.glassfish.hk2.api.ServiceLocator sl,
org.glassfish.hk2.api.IterableProvider<TransactionMember.Wrapper> memberFactory)
public Transaction current()
current in interface TransactionControlpublic Transaction start()
start in interface TransactionControlpublic Class<? extends Annotation> getScope()
getScope in interface org.glassfish.hk2.api.Context<TransactionScoped>public <T> T findOrCreate(org.glassfish.hk2.api.ActiveDescriptor<T> key,
org.glassfish.hk2.api.ServiceHandle<?> root)
findOrCreate in interface org.glassfish.hk2.api.Context<TransactionScoped>public boolean containsKey(org.glassfish.hk2.api.ActiveDescriptor key)
containsKey in interface org.glassfish.hk2.api.Context<TransactionScoped>public void destroyOne(org.glassfish.hk2.api.ActiveDescriptor<?> key)
destroyOne in interface org.glassfish.hk2.api.Context<TransactionScoped>public boolean supportsNullCreation()
supportsNullCreation in interface org.glassfish.hk2.api.Context<TransactionScoped>public boolean isActive()
isActive in interface org.glassfish.hk2.api.Context<TransactionScoped>public void shutdown()
shutdown in interface org.glassfish.hk2.api.Context<TransactionScoped>Copyright © 2015. All rights reserved.