Merge "Fix bug 153: change the key container-config to ContainerConfig in the contain...
[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 org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractNotificationBrokerImplModule
25 {
26
27     public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
28         super(identifier, dependencyResolver);
29     }
30
31     public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, NotificationBrokerImplModule oldModule, java.lang.AutoCloseable oldInstance) {
32         super(identifier, dependencyResolver, oldModule, oldInstance);
33     }
34
35     @Override
36     public void validate(){
37         super.validate();
38         // Add custom validation for module attributes here.
39     }
40
41     @Override
42     public java.lang.AutoCloseable createInstance() {
43         ExecutorService executor = Executors.newFixedThreadPool(5);
44         ListeningExecutorService listeningExecutor = MoreExecutors.listeningDecorator(executor);
45         NotificationBrokerImpl broker = new NotificationBrokerImpl(listeningExecutor);
46         return broker;
47     }
48 }