@Service public final class Transactions extends java.lang.Object implements PostConstruct, PreDestroy
| Constructor and Description |
|---|
Transactions() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListenerForType(java.lang.Class listenerType,
ConfigListener listener)
adds a listener for a particular config type
|
void |
addTransactionsListener(TransactionListener listener)
add a new listener to all transaction events.
|
java.util.List<TransactionListener> |
currentListeners() |
void |
postConstruct() |
void |
preDestroy() |
boolean |
removeListenerForType(java.lang.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 PostConstructpublic void preDestroy()
preDestroy in interface PreDestroypublic void addListenerForType(java.lang.Class listenerType,
ConfigListener listener)
listenerType - the config typelistener - the config listenerpublic boolean removeListenerForType(java.lang.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 java.util.List<TransactionListener> currentListeners()
public void waitForDrain()
Copyright © 2013 Oracle Corporation. All Rights Reserved.