X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fnetconf-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fimpl%2Fosgi%2FNetconfOperationServiceFactoryTracker.java;h=f1845b1038207a8239dc3a58f305f89e722d5fd7;hb=bd6ecc76e3076240630fd197d5cf6fd812ba8abb;hp=b1a084424c67ba9192a9607255787cd04f0a0343;hpb=6d7e12bf3ef64e5004703a1d540e7e26f30a9595;p=netconf.git diff --git a/netconf/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfOperationServiceFactoryTracker.java b/netconf/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfOperationServiceFactoryTracker.java index b1a084424c..f1845b1038 100644 --- a/netconf/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfOperationServiceFactoryTracker.java +++ b/netconf/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfOperationServiceFactoryTracker.java @@ -18,14 +18,15 @@ class NetconfOperationServiceFactoryTracker extends ServiceTracker { private final NetconfOperationServiceFactoryListener factoriesListener; - NetconfOperationServiceFactoryTracker(BundleContext context, + NetconfOperationServiceFactoryTracker(final BundleContext context, final NetconfOperationServiceFactoryListener factoriesListener) { super(context, NetconfOperationServiceFactory.class, null); this.factoriesListener = factoriesListener; } @Override - public NetconfOperationServiceFactory addingService(ServiceReference reference) { + public NetconfOperationServiceFactory addingService( + final ServiceReference reference) { Object property = reference.getProperty(NetconfConstants.SERVICE_NAME); if (property != null && isMarkedForConfig(property)) { NetconfOperationServiceFactory netconfOperationServiceFactory = super.addingService(reference); @@ -37,14 +38,14 @@ class NetconfOperationServiceFactoryTracker extends } @Override - public void removedService(ServiceReference reference, - NetconfOperationServiceFactory netconfOperationServiceFactory) { + public void removedService(final ServiceReference reference, + final NetconfOperationServiceFactory netconfOperationServiceFactory) { if (netconfOperationServiceFactory != null) { factoriesListener.onRemoveNetconfOperationServiceFactory(netconfOperationServiceFactory); } } - private boolean isMarkedForConfig(Object property) { + private static boolean isMarkedForConfig(final Object property) { return NetconfConstants.CONFIG_SERVICE_MARKERS.contains(property); }