Merge "Fixed bugs in getUnsigned methods of NetUtils class."
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / config / yang / md / sal / binding / impl / NotificationBrokerImplModule.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.config.yang.md.sal.binding.impl;
9
10 import org.opendaylight.controller.sal.binding.codegen.impl.SingletonHolder;
11 import org.opendaylight.controller.sal.binding.impl.NotificationBrokerImpl;
12
13 import com.google.common.util.concurrent.ListeningExecutorService;
14
15 /**
16 *
17 */
18 public final class NotificationBrokerImplModule extends
19         org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractNotificationBrokerImplModule {
20
21     public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
22             org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
23         super(identifier, dependencyResolver);
24     }
25
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);
30     }
31
32     @Override
33     public void validate() {
34         super.validate();
35         // Add custom validation for module attributes here.
36     }
37
38     @Override
39     public java.lang.AutoCloseable createInstance() {
40         ListeningExecutorService listeningExecutor = SingletonHolder.getDefaultNotificationExecutor();
41         NotificationBrokerImpl broker = new NotificationBrokerImpl(listeningExecutor);
42         return broker;
43     }
44 }