@Service public final class Transactions extends Object implements PostConstruct, 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()
The component has been injected with any dependency and
will be placed into commission by the subsystem.
|
void |
preDestroy()
The component is about to be removed from the registry.
|
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()
PostConstructpostConstruct in interface PostConstructpublic void preDestroy()
PreDestroypreDestroy in interface 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 © 2009–2017 Oracle Corporation. All rights reserved.