@Service(name="PendingConfigBeans") public class PendingConfigBeans extends Object implements org.glassfish.config.support.ConfigBeanListener, org.glassfish.hk2.api.PostConstruct, org.jvnet.hk2.config.TransactionListener
| Constructor and Description |
|---|
PendingConfigBeans()
/**
Singleton: there should be only one instance and hence a private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PendingConfigBeanJob |
add(org.jvnet.hk2.config.ConfigBean cb,
boolean useLatch) |
void |
onEntered(org.glassfish.hk2.api.ActiveDescriptor<org.jvnet.hk2.config.ConfigBean> provider) |
PendingConfigBeanJob |
peek() |
void |
postConstruct() |
boolean |
remove(org.jvnet.hk2.config.ConfigBean cb)
Removing a ConfigBean must ensure that all its children are also removed.
|
int |
size() |
void |
swapTransactionListener(org.jvnet.hk2.config.TransactionListener newListener)
amx-impl has its own TransactionListener which takes over once AMX is loaded.
|
PendingConfigBeanJob |
take() |
void |
transactionCommited(List<PropertyChangeEvent> events)
This is a workaround for the fact that the onEntered() is not being called in all cases,
namely during deployment before AMX has loaded.
|
void |
unprocessedTransactedEvents(List<org.jvnet.hk2.config.UnprocessedChangeEvents> changes) |
public PendingConfigBeans()
public int size()
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic PendingConfigBeanJob take() throws InterruptedException
InterruptedExceptionpublic PendingConfigBeanJob peek() throws InterruptedException
InterruptedExceptionpublic void onEntered(org.glassfish.hk2.api.ActiveDescriptor<org.jvnet.hk2.config.ConfigBean> provider)
onEntered in interface org.glassfish.config.support.ConfigBeanListenerpublic PendingConfigBeanJob add(org.jvnet.hk2.config.ConfigBean cb, boolean useLatch)
public boolean remove(org.jvnet.hk2.config.ConfigBean cb)
TODO: remove all children of the ConfigBean.
public void swapTransactionListener(org.jvnet.hk2.config.TransactionListener newListener)
public void transactionCommited(List<PropertyChangeEvent> events)
transactionCommited in interface org.jvnet.hk2.config.TransactionListenerpublic void unprocessedTransactedEvents(List<org.jvnet.hk2.config.UnprocessedChangeEvents> changes)
unprocessedTransactedEvents in interface org.jvnet.hk2.config.TransactionListenerCopyright © 2017–2020 Eclipse Foundation. All rights reserved.