Merge "Fixed major sonar warnings in Binding Aware Broker"
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / config / yang / md / sal / binding / impl / NotificationBrokerImplModule.java
1 /**
2  * Generated file
3
4  * Generated from: yang module name: opendaylight-sal-binding-broker-impl  yang module local name: binding-notification-broker
5  * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
6  * Generated at: Wed Nov 20 17:33:01 CET 2013
7  *
8  * Do not modify this file unless it is present under src/main directory
9  */
10 package org.opendaylight.controller.config.yang.md.sal.binding.impl;
11
12 import java.util.concurrent.ExecutorService;
13 import java.util.concurrent.Executors;
14 import java.util.concurrent.ScheduledExecutorService;
15
16 import org.opendaylight.controller.sal.binding.impl.NotificationBrokerImpl;
17
18 import com.google.common.util.concurrent.ListeningExecutorService;
19 import com.google.common.util.concurrent.MoreExecutors;
20
21 /**
22 *
23 */
24 public final class NotificationBrokerImplModule extends
25         org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractNotificationBrokerImplModule {
26
27     public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
28             org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
29         super(identifier, dependencyResolver);
30     }
31
32     public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
33             org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
34             NotificationBrokerImplModule oldModule, java.lang.AutoCloseable oldInstance) {
35         super(identifier, dependencyResolver, oldModule, oldInstance);
36     }
37
38     @Override
39     public void validate() {
40         super.validate();
41         // Add custom validation for module attributes here.
42     }
43
44     @Override
45     public java.lang.AutoCloseable createInstance() {
46         ExecutorService executor = Executors.newFixedThreadPool(5);
47         ListeningExecutorService listeningExecutor = MoreExecutors.listeningDecorator(executor);
48         NotificationBrokerImpl broker = new NotificationBrokerImpl(listeningExecutor);
49         return broker;
50     }
51 }