AuthConfigRegistrationWrapper listenerWrapper = (AuthConfigRegistrationWrapper) svcRefListenerMap.get(desc); if (listenerWrapper != null) { listenerWrapper.disable(); } svcRefListenerMap.remove(desc);
return INSTANCE;
AuthConfigRegistrationWrapper listenerWrapper = (AuthConfigRegistrationWrapper) svcRefListenerMap.get(desc); return listenerWrapper;
svcRefListenerMap.put(desc,wrapper);
ServiceReferenceDescriptor entryToRemove = null; for (ServiceReferenceDescriptor svc : svcRefListenerMap.keySet()) { AuthConfigRegistrationWrapper wrp = svcRefListenerMap.get(svc); if (wrp == wrapper) { entryToRemove = svc; break; } } if (entryToRemove != null) { svcRefListenerMap.remove(entryToRemove); }