Bulk-add copyright headers to java files
[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 java.util.concurrent.ExecutorService;
11 import java.util.concurrent.Executors;
12 import java.util.concurrent.ScheduledExecutorService;
13
14 import org.opendaylight.controller.sal.binding.codegen.impl.SingletonHolder;
15 import org.opendaylight.controller.sal.binding.impl.NotificationBrokerImpl;
16
17 import com.google.common.util.concurrent.ListeningExecutorService;
18 import com.google.common.util.concurrent.MoreExecutors;
19
20 /**
21 *
22 */
23 public final class NotificationBrokerImplModule extends
24         org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractNotificationBrokerImplModule {
25
26     public NotificationBrokerImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
27             org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
28         super(identifier, dependencyResolver);
29     }
30
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);
35     }
36
37     @Override
38     public void validate() {
39         super.validate();
40         // Add custom validation for module attributes here.
41     }
42
43     @Override
44     public java.lang.AutoCloseable createInstance() {
45         ListeningExecutorService listeningExecutor = SingletonHolder.getDefaultNotificationExecutor();
46         NotificationBrokerImpl broker = new NotificationBrokerImpl(listeningExecutor);
47         return broker;
48     }
49 }