@Service public final class Transactions extends Object implements org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy
| Constructor and Description |
|---|
Transactions() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListenerForType(Class listenerType,
ConfigListener listener)
adds a listener for a particular config type
|
void |
addTransactionsListener(TransactionListener listener)
add a new listener to all transaction events.
|
List<TransactionListener> |
currentListeners() |
void |
postConstruct() |
void |
preDestroy() |
boolean |
removeListenerForType(Class listenerType,
ConfigListener listener)
removes a listener for a particular config type
|
boolean |
removeTransactionsListener(TransactionListener listener)
Removes an existing listener for transaction events
|
void |
waitForDrain() |
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic void preDestroy()
preDestroy in interface org.glassfish.hk2.api.PreDestroypublic void addListenerForType(Class listenerType, ConfigListener listener)
listenerType - the config typelistener - the config listenerpublic boolean removeListenerForType(Class listenerType, ConfigListener listener)
listenerType - the config typelistener - the config listenerpublic void addTransactionsListener(TransactionListener listener)
listener - to be added.public boolean removeTransactionsListener(TransactionListener listener)
listener - the registered listenerpublic List<TransactionListener> currentListeners()
public void waitForDrain()
Copyright © 2019. All rights reserved.