X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fshutdown-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyang%2Fshutdown%2Fimpl%2FShutdownModuleFactory.java;h=de7ed0fa66940a24243e3d3c3da777b9fc67c249;hp=1994e21a6de9680eb9ac8ad851d8e5fa9893581c;hb=1417bcd892b1dc9a4d68c9562d91eee8320de38f;hpb=71f19bb6cdb8fcbeec5bcb1e5258fa5c98a41085 diff --git a/opendaylight/config/shutdown-impl/src/main/java/org/opendaylight/controller/config/yang/shutdown/impl/ShutdownModuleFactory.java b/opendaylight/config/shutdown-impl/src/main/java/org/opendaylight/controller/config/yang/shutdown/impl/ShutdownModuleFactory.java index 1994e21a6d..de7ed0fa66 100644 --- a/opendaylight/config/shutdown-impl/src/main/java/org/opendaylight/controller/config/yang/shutdown/impl/ShutdownModuleFactory.java +++ b/opendaylight/config/shutdown-impl/src/main/java/org/opendaylight/controller/config/yang/shutdown/impl/ShutdownModuleFactory.java @@ -17,22 +17,22 @@ import org.osgi.framework.BundleContext; public class ShutdownModuleFactory extends AbstractShutdownModuleFactory { - public ShutdownModule instantiateModule(String instanceName, DependencyResolver dependencyResolver, - ShutdownModule oldModule, AutoCloseable oldInstance, - BundleContext bundleContext) { + public ShutdownModule instantiateModule(final String instanceName, final DependencyResolver dependencyResolver, + final ShutdownModule oldModule, final AutoCloseable oldInstance, + final BundleContext bundleContext) { Bundle systemBundle = bundleContext.getBundle(0); return new ShutdownModule(new ModuleIdentifier(NAME, instanceName), oldModule, oldInstance, systemBundle); } - public ShutdownModule instantiateModule(String instanceName, DependencyResolver dependencyResolver, - BundleContext bundleContext) { + public ShutdownModule instantiateModule(final String instanceName, final DependencyResolver dependencyResolver, + final BundleContext bundleContext) { Bundle systemBundle = bundleContext.getBundle(0); return new ShutdownModule(new ModuleIdentifier(NAME, instanceName), systemBundle); } @Override - public Set getDefaultModules(DependencyResolverFactory dependencyResolverFactory, BundleContext bundleContext) { + public Set getDefaultModules(final DependencyResolverFactory dependencyResolverFactory, final BundleContext bundleContext) { ModuleIdentifier id = new ModuleIdentifier(NAME, NAME); DependencyResolver dependencyResolver = dependencyResolverFactory.createDependencyResolver(id); ShutdownModule shutdownModule = instantiateModule(NAME, dependencyResolver, bundleContext);