use of org.apache.cxf.endpoint.ClientLifeCycleManager in project cxf by apache.
the class OSGIBusListener method registerClientLifeCycleListeners.
private void registerClientLifeCycleListeners() {
ServiceReference<?>[] refs = getServiceReferences(defaultContext, ClientLifeCycleListener.class);
ClientLifeCycleManager clcm = bus.getExtension(ClientLifeCycleManager.class);
for (ServiceReference<?> ref : refs) {
if (!isPrivate(ref) && !isExcluded(ref)) {
ClientLifeCycleListener listener = (ClientLifeCycleListener) defaultContext.getService(ref);
clcm.registerListener(listener);
}
}
}
Aggregations