|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.hk2.config.Transactions
@Service @Scoped(value=org.jvnet.hk2.component.Singleton.class) 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(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()
|
| 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 in interface org.jvnet.hk2.component.PostConstructpublic void preDestroy()
preDestroy in interface org.jvnet.hk2.component.PreDestroy
public void addListenerForType(java.lang.Class listenerType,
ConfigListener listener)
listenerType - the config typelistener - the config listener
public boolean removeListenerForType(java.lang.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 java.util.List<TransactionListener> currentListeners()
public void waitForDrain()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||