|
||||||||||
| 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.glassfish.hk2.scopes.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(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()
|
| 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 PostConstructpublic void preDestroy()
preDestroy in interface PreDestroy
public void addListenerForType(Class listenerType,
ConfigListener listener)
listenerType - the config typelistener - the config listener
public 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 | |||||||||