1 package org.opendaylight.controller.config.yang.config.lfm.mappingservice.impl;
3 import org.opendaylight.lispflowmapping.implementation.LispMappingService;
4 import org.slf4j.Logger;
5 import org.slf4j.LoggerFactory;
7 public class LispMappingServiceModule extends org.opendaylight.controller.config.yang.config.lfm.mappingservice.impl.AbstractLispMappingServiceModule {
8 private static final Logger LOG = LoggerFactory.getLogger(LispMappingServiceModule.class);
10 private LispMappingService lmsService;
12 public LispMappingServiceModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
13 super(identifier, dependencyResolver);
16 public LispMappingServiceModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.controller.config.yang.config.lfm.mappingservice.impl.LispMappingServiceModule oldModule, java.lang.AutoCloseable oldInstance) {
17 super(identifier, dependencyResolver, oldModule, oldInstance);
21 public void customValidation() {
22 // add custom validation form module attributes here.
26 public java.lang.AutoCloseable createInstance() {
27 LOG.debug("LispMappingService Module up!");
29 lmsService = new LispMappingService();
30 lmsService.setBindingAwareBroker(getOsgiBrokerDependency());
31 lmsService.setMappingService(getMappingserviceDependency());
32 lmsService.initialize();