@Test public void testRemovingService(){ slMap.removedService(ref, service); assertEquals(-1, targetMap.counter); slDictionary.removedService(ref, service); assertEquals(-1, targetDictionary.counter); }
@Override public void removedService(ServiceReference ref, Object service) { super.removedService(ref, service); unregisterConsumer.accept(serviceClass.cast(service), getProperties(ref)); }
CyServiceListener extends ServiceTracker { @Override public void removedService(ServiceReference ref, Object service) { super.removedService(ref, service); unregisterConsumer.accept(serviceClass.cast(service), getProperties(ref)); } }
CyServiceListener extends ServiceTracker { @Override public void removedService(ServiceReference ref, Object service) { super.removedService(ref, service); unregisterConsumer.accept(serviceClass.cast(service), getProperties(ref)); } CyServiceListener(BundleContext bc, Object target, String registerMethodName, String unregisterMethodName, Class<S> serviceClass, Class<?> methodClass, String additionalFilter);  CyServiceListener(BundleContext bc, BiConsumer<S,Map<String,String>> registerConsumer, BiConsumer<S,Map<String,String>> unregisterConsumer, Class<S> serviceClass, String additionalFilter); }
CyServiceListener extends ServiceTracker { @Override public void removedService(ServiceReference ref, Object service) { super.removedService(ref, service); unregisterConsumer.accept(serviceClass.cast(service), getProperties(ref)); } CyServiceListener(BundleContext bc, Object target, String registerMethodName, String unregisterMethodName, Class<S> serviceClass, Class<?> methodClass, String additionalFilter);  CyServiceListener(BundleContext bc, BiConsumer<S,Map<String,String>> registerConsumer, BiConsumer<S,Map<String,String>> unregisterConsumer, Class<S> serviceClass, String additionalFilter); @Override Object addingService(ServiceReference ref); @Override void removedService(ServiceReference ref, Object service); }
CyServiceListener extends ServiceTracker { @Override public void removedService(ServiceReference ref, Object service) { super.removedService(ref, service); unregisterConsumer.accept(serviceClass.cast(service), getProperties(ref)); } CyServiceListener(BundleContext bc, Object target, String registerMethodName, String unregisterMethodName, Class<S> serviceClass, Class<?> methodClass, String additionalFilter);  CyServiceListener(BundleContext bc, BiConsumer<S,Map<String,String>> registerConsumer, BiConsumer<S,Map<String,String>> unregisterConsumer, Class<S> serviceClass, String additionalFilter); @Override Object addingService(ServiceReference ref); @Override void removedService(ServiceReference ref, Object service);  }