|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.hk2.config.Transactions
@Service public final class Transactions
Transactions is a singleton service that receives transaction notifications and dispatch these notifications asynchronously to listeners.
Constructor Summary | |
---|---|
Transactions()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Transactions()
Method Detail |
---|
public void postConstruct()
PostConstruct
postConstruct
in interface PostConstruct
public void preDestroy()
PreDestroy
preDestroy
in interface PreDestroy
public 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 listener
public void addTransactionsListener(TransactionListener listener)
listener
- to be added.public boolean removeTransactionsListener(TransactionListener listener)
listener
- the registered listener
public List<TransactionListener> currentListeners()
public void waitForDrain()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |