2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.config.yang.netconf.mdsal.mapper;
11 import org.opendaylight.controller.netconf.mdsal.connector.MdsalNetconfOperationServiceFactory;
13 public class NetconfMdsalMapperModule extends org.opendaylight.controller.config.yang.netconf.mdsal.mapper.AbstractNetconfMdsalMapperModule{
14 public NetconfMdsalMapperModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
15 super(identifier, dependencyResolver);
18 public NetconfMdsalMapperModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.controller.config.yang.netconf.mdsal.mapper.NetconfMdsalMapperModule oldModule, java.lang.AutoCloseable oldInstance) {
19 super(identifier, dependencyResolver, oldModule, oldInstance);
23 public void customValidation() {
24 // add custom validation form module attributes here.
28 public java.lang.AutoCloseable createInstance() {
29 final MdsalNetconfOperationServiceFactory mdsalNetconfOperationServiceFactory =
30 new MdsalNetconfOperationServiceFactory(getRootSchemaServiceDependency()) {
32 public void close() throws Exception {
34 getMapperAggregatorDependency().onRemoveNetconfOperationServiceFactory(this);
37 getDomBrokerDependency().registerConsumer(mdsalNetconfOperationServiceFactory);
38 getMapperAggregatorDependency().onAddNetconfOperationServiceFactory(mdsalNetconfOperationServiceFactory);
39 return mdsalNetconfOperationServiceFactory;