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%2FShutdownModule.java;fp=opendaylight%2Fconfig%2Fshutdown-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyang%2Fshutdown%2Fimpl%2FShutdownModule.java;h=0000000000000000000000000000000000000000;hp=57efe52827baa0c6feff5c46bf42c00bfb17424a;hb=ac6f2699cd0c1e340cc32e8f0d0ca94c8e9c0cc0;hpb=f43b01b81319959b1907e3e04537f5169e7f33d8 diff --git a/opendaylight/config/shutdown-impl/src/main/java/org/opendaylight/controller/config/yang/shutdown/impl/ShutdownModule.java b/opendaylight/config/shutdown-impl/src/main/java/org/opendaylight/controller/config/yang/shutdown/impl/ShutdownModule.java deleted file mode 100644 index 57efe52827..0000000000 --- a/opendaylight/config/shutdown-impl/src/main/java/org/opendaylight/controller/config/yang/shutdown/impl/ShutdownModule.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -/** - * Generated file - - * Generated from: yang module name: shutdown-impl yang module local name: shutdown - * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator - * Generated at: Wed Dec 18 14:02:06 CET 2013 - * - * Do not modify this file unless it is present under src/main directory - */ -package org.opendaylight.controller.config.yang.shutdown.impl; - -import org.opendaylight.controller.config.api.DependencyResolver; -import org.opendaylight.controller.config.api.JmxAttributeValidationException; -import org.opendaylight.controller.config.api.ModuleIdentifier; -import org.osgi.framework.Bundle; - -public final class ShutdownModule extends AbstractShutdownModule { - private final Bundle systemBundle; - - public ShutdownModule(final ModuleIdentifier identifier, final Bundle systemBundle) { - super(identifier, null); - singletonCheck(identifier); - this.systemBundle = systemBundle; - } - - public ShutdownModule(final ModuleIdentifier identifier, final ShutdownModule oldModule, final java.lang.AutoCloseable oldInstance, - final Bundle systemBundle) { - super(identifier, null, oldModule, oldInstance); - singletonCheck(identifier); - this.systemBundle = systemBundle; - } - - private static void singletonCheck(final ModuleIdentifier identifier) { - if (AbstractShutdownModuleFactory.NAME.equals(identifier.getInstanceName()) == false) { - throw new IllegalArgumentException("Singleton enforcement failed. Expected instance name " + AbstractShutdownModuleFactory.NAME); - } - } - - @Deprecated // needed for generated code - public ShutdownModule(final ModuleIdentifier identifier, final DependencyResolver dependencyResolver, final ShutdownModule oldModule, - final AutoCloseable oldInstance) { - super(identifier, dependencyResolver, oldModule, oldInstance); - throw new UnsupportedOperationException(); - } - - @Deprecated // needed for generated code - public ShutdownModule(final ModuleIdentifier identifier, final DependencyResolver dependencyResolver) { - super(identifier, dependencyResolver); - throw new UnsupportedOperationException(); - } - - @Override - protected void customValidation() { - JmxAttributeValidationException.checkNotNull(super.getSecret(), secretJmxAttribute); - } - - @Override - public java.lang.AutoCloseable createInstance() { - return new ShutdownServiceImpl(getSecret(), systemBundle, getRootRuntimeBeanRegistratorWrapper()); - } -}