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 java.util.concurrent.ExecutorService;
11 import java.util.concurrent.Executors;
12 import java.util.concurrent.ScheduledExecutorService;
14 import org.opendaylight.controller.sal.binding.codegen.impl.SingletonHolder;
15 import org.opendaylight.controller.sal.binding.impl.NotificationBrokerImpl;
17 import com.google.common.util.concurrent.ListeningExecutorService;
18 import com.google.common.util.concurrent.MoreExecutors;
23 public final class NotificationBrokerImplModule extends
24 org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractNotificationBrokerImplModule {
26 public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
27 org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
28 super(identifier, dependencyResolver);
31 public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
32 org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
33 NotificationBrokerImplModule oldModule, java.lang.AutoCloseable oldInstance) {
34 super(identifier, dependencyResolver, oldModule, oldInstance);
38 public void validate() {
40 // Add custom validation for module attributes here.
44 public java.lang.AutoCloseable createInstance() {
45 ListeningExecutorService listeningExecutor = SingletonHolder.getDefaultNotificationExecutor();
46 NotificationBrokerImpl broker = new NotificationBrokerImpl(listeningExecutor);