73438eb878a8239892c1bbc5c7913a56b3d08fd8
[controller.git] / opendaylight / md-sal / samples / toaster-provider / src / main / java / org / opendaylight / controller / config / yang / config / toaster_provider / impl / ToasterProviderModule.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 /**
10 * Generated file
11
12 * Generated from: yang module name: toaster-provider-impl  yang module local name: toaster-provider-impl
13 * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
14 * Generated at: Wed Feb 05 11:05:32 CET 2014
15 *
16 * Do not modify this file unless it is present under src/main directory
17 */
18 package org.opendaylight.controller.config.yang.config.toaster_provider.impl;
19
20 import org.opendaylight.controller.sal.common.util.NoopAutoCloseable;
21 import org.slf4j.Logger;
22 import org.slf4j.LoggerFactory;
23
24 /**
25 *
26 */
27 public final class ToasterProviderModule extends
28         org.opendaylight.controller.config.yang.config.toaster_provider.impl.AbstractToasterProviderModule {
29     private static final Logger log = LoggerFactory.getLogger(ToasterProviderModule.class);
30
31     public ToasterProviderModule(final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
32             final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
33         super(identifier, dependencyResolver);
34     }
35
36     public ToasterProviderModule(final org.opendaylight.controller.config.api.ModuleIdentifier identifier,
37             final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
38             final ToasterProviderModule oldModule, final java.lang.AutoCloseable oldInstance) {
39
40         super(identifier, dependencyResolver, oldModule, oldInstance);
41     }
42
43     @Override
44     protected void customValidation() {
45         // No need to validate dependencies, since all dependencies have
46         // mandatory true flag in yang
47         // config-subsystem will perform the validation for dependencies
48     }
49
50     @Override
51     public java.lang.AutoCloseable createInstance() {
52         // The components are created and wired via blueprint and, since this module doesn't advertise any
53         // services, return an empty AutoCloseable. The config module is kept for backwards compatibility.
54         return NoopAutoCloseable.INSTANCE;
55     }
56 }