2 * Copyright (c) 2014 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
8 package org.opendaylight.controller.config.yang.md.sal.binding.impl;
10 import org.opendaylight.controller.sal.binding.codegen.impl.SingletonHolder;
11 import org.opendaylight.controller.sal.binding.impl.NotificationBrokerImpl;
13 import com.google.common.util.concurrent.ListeningExecutorService;
18 public final class NotificationBrokerImplModule extends
19 org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractNotificationBrokerImplModule {
21 public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
22 org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
23 super(identifier, dependencyResolver);
26 public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
27 org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
28 NotificationBrokerImplModule oldModule, java.lang.AutoCloseable oldInstance) {
29 super(identifier, dependencyResolver, oldModule, oldInstance);
33 public void validate() {
35 // Add custom validation for module attributes here.
39 public java.lang.AutoCloseable createInstance() {
40 ListeningExecutorService listeningExecutor = SingletonHolder.getDefaultNotificationExecutor();
41 NotificationBrokerImpl broker = new NotificationBrokerImpl(listeningExecutor);