invokeListeners(event);
}
public void remove(Object service) {
ServiceRegistryReference serviceReference = null;
String beanName = null;
synchronized (registryLock) {
beanName = entities.remove(service);
if (beanName != null) {
serviceReference = services.remove(beanName);
}
}
if (serviceReference != null) {
if (logger.isDebugEnabled())
logger.debug("Removed from service reference bean '" + beanName
+ "' contributed from module '"
+ serviceReference.getContributingModule() + "'");
ServiceRemovedEvent event = new ServiceRemovedEvent(
serviceReference);
invokeListeners(event);
}