@Service(name="PendingConfigBeans") public class PendingConfigBeans extends Object implements ConfigBeanListener, org.glassfish.hk2.api.PostConstruct, 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(ConfigBean cb,
boolean useLatch) |
void |
onEntered(org.glassfish.hk2.api.ActiveDescriptor<ConfigBean> provider)
Notification that a new config beans has entered the configuration
tree.
|
PendingConfigBeanJob |
peek() |
void |
postConstruct() |
boolean |
remove(ConfigBean cb)
Removing a ConfigBean must ensure that all its children are also removed.
|
int |
size() |
void |
swapTransactionListener(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<UnprocessedChangeEvents> changes)
Nofication of unprocessed events by ConfigListener, usually requiring a server
restart.
|
public PendingConfigBeans()
public int size()
public void postConstruct()
postConstruct
in interface org.glassfish.hk2.api.PostConstruct
public PendingConfigBeanJob take() throws InterruptedException
InterruptedException
public PendingConfigBeanJob peek() throws InterruptedException
InterruptedException
public void onEntered(org.glassfish.hk2.api.ActiveDescriptor<ConfigBean> provider)
ConfigBeanListener
onEntered
in interface ConfigBeanListener
provider
- the new config beanpublic PendingConfigBeanJob add(ConfigBean cb, boolean useLatch)
public boolean remove(ConfigBean cb)
TODO: remove all children of the ConfigBean.
public void swapTransactionListener(TransactionListener newListener)
public void transactionCommited(List<PropertyChangeEvent> events)
transactionCommited
in interface TransactionListener
public void unprocessedTransactedEvents(List<UnprocessedChangeEvents> changes)
TransactionListener
unprocessedTransactedEvents
in interface TransactionListener
Copyright © 2018. All rights reserved.