use of org.apache.cxf.buslifecycle.BusCreationListener in project cxf by apache.
the class ExtensionManagerBus method initialize.
public void initialize() {
setState(BusState.INITIALIZING);
Collection<? extends BusCreationListener> ls = getExtension(ConfiguredBeanLocator.class).getBeansOfType(BusCreationListener.class);
for (BusCreationListener l : ls) {
l.busCreated(this);
}
doInitializeInternal();
BusLifeCycleManager lifeCycleManager = this.getExtension(BusLifeCycleManager.class);
if (null != lifeCycleManager) {
lifeCycleManager.initComplete();
}
setState(BusState.RUNNING);
}
use of org.apache.cxf.buslifecycle.BusCreationListener in project cxf by apache.
the class OSGIBusListener method sendBusCreatedToBusCreationListeners.
private void sendBusCreatedToBusCreationListeners() {
ServiceReference<?>[] refs = getServiceReferences(defaultContext, BusCreationListener.class);
for (ServiceReference<?> ref : refs) {
if (!isPrivate(ref) && !isExcluded(ref)) {
BusCreationListener listener = (BusCreationListener) defaultContext.getService(ref);
listener.busCreated(bus);
}
}
}
Aggregations