2 * Copyright (c) 2015 Cisco Systems, Inc. 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.config.lfm_mappingservice.impl;
11 import org.opendaylight.lispflowmapping.implementation.LispMappingService;
12 import org.slf4j.Logger;
13 import org.slf4j.LoggerFactory;
15 public class LfmMappingServiceModule extends org.opendaylight.controller.config.yang.config.lfm_mappingservice.impl.AbstractLfmMappingServiceModule {
16 private static final Logger LOG = LoggerFactory.getLogger(LfmMappingServiceModule.class);
17 private LispMappingService lfmService;
18 public LfmMappingServiceModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
19 super(identifier, dependencyResolver);
22 public LfmMappingServiceModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.controller.config.yang.config.lfm_mappingservice.impl.LfmMappingServiceModule oldModule, java.lang.AutoCloseable oldInstance) {
23 super(identifier, dependencyResolver, oldModule, oldInstance);
27 public void customValidation() {
28 // add custom validation form module attributes here.
32 public java.lang.AutoCloseable createInstance() {
33 LOG.debug("LfmMappingService Module up!");
35 lfmService = new LispMappingService();
36 lfmService.setDataBrokerService(getDataBrokerDependency());
37 lfmService.setRpcProviderRegistry(getRpcRegistryDependency());
38 lfmService.setBindingAwareBroker(getBrokerDependency());
39 lfmService.setLispDao(getDaoDependency());
40 lfmService.initialize();