in rsa/src/main/java/org/apache/aries/rsa/core/event/EventProducer.java [95:120]
protected void notifyListeners(RemoteServiceAdminEvent rsae) {
try {
ServiceReference[] listenerRefs = bctx.getServiceReferences(
RemoteServiceAdminListener.class.getName(), null);
if (listenerRefs != null) {
for (ServiceReference sref : listenerRefs) {
RemoteServiceAdminListener rsal = (RemoteServiceAdminListener)bctx.getService(sref);
if (rsal != null) {
try {
Bundle bundle = sref.getBundle();
if (bundle != null) {
LOG.debug("notify RemoteServiceAdminListener {} of bundle {}",
rsal, bundle.getSymbolicName());
rsal.remoteAdminEvent(rsae);
}
} finally {
bctx.ungetService(sref);
}
}
}
}
} catch (InvalidSyntaxException e) {
LOG.error(e.getMessage(), e);
}
eventAdminSender.send(rsae);
}