Integration with MDSAL Util
[vpnservice.git] / vpnmanager / vpnmanager-impl / src / main / java / org / opendaylight / yang / gen / v1 / urn / opendaylight / params / xml / ns / yang / vpnservice / impl / rev150216 / VpnserviceImplModule.java
1 /*
2  * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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 package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpnservice.impl.rev150216;
9
10 import org.opendaylight.vpnservice.VpnserviceProvider;
11
12 public class VpnserviceImplModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpnservice.impl.rev150216.AbstractVpnserviceImplModule {
13     public VpnserviceImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
14         super(identifier, dependencyResolver);
15     }
16
17     public VpnserviceImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpnservice.impl.rev150216.VpnserviceImplModule oldModule, java.lang.AutoCloseable oldInstance) {
18         super(identifier, dependencyResolver, oldModule, oldInstance);
19     }
20
21     @Override
22     public void customValidation() {
23         // add custom validation form module attributes here.
24     }
25
26     @Override
27     public java.lang.AutoCloseable createInstance() {
28         VpnserviceProvider provider = new VpnserviceProvider();
29         provider.setBgpManager(getBgpmanagerDependency());
30         provider.setMdsalManager(getMdsalutilDependency());
31         provider.setInterfaceManager(getOdlinterfaceDependency());
32         getBrokerDependency().registerProvider(provider);
33         return provider;
34     }
35 }