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 com.google.common.util.concurrent.ListeningExecutorService;
11 import org.opendaylight.controller.sal.binding.codegen.impl.SingletonHolder;
12 import org.opendaylight.controller.sal.binding.impl.NotificationBrokerImpl;
17 public final class NotificationBrokerImplModule extends
18 org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractNotificationBrokerImplModule {
20 public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
21 org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
22 super(identifier, dependencyResolver);
25 public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
26 org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
27 NotificationBrokerImplModule oldModule, java.lang.AutoCloseable oldInstance) {
28 super(identifier, dependencyResolver, oldModule, oldInstance);
32 public void validate() {
34 // Add custom validation for module attributes here.
38 public java.lang.AutoCloseable createInstance() {
41 * FIXME: Switch to new broker (which has different threading model)
42 * once this change is communicated with downstream users or
43 * we will have adapter implementation which will honor Helium
44 * threading model for notifications.
46 ListeningExecutorService listeningExecutor = SingletonHolder.getDefaultNotificationExecutor();
47 NotificationBrokerImpl broker = new NotificationBrokerImpl(listeningExecutor);