0bdcbbcca413715de256fd7f965968d1e22b9d96
[controller.git] / opendaylight / config / threadpool-config-impl / src / main / java / org / opendaylight / controller / config / yang / threadpool / impl / AsyncEventBusModule.java
1 /*
2  * Copyright (c) 2013 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
9 /**
10  * Generated file
11
12  * Generated from: yang module name: threadpool-impl  yang module local name: async-eventbus
13  * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
14  * Generated at: Tue Nov 05 15:40:46 CET 2013
15  *
16  * Do not modify this file unless it is present under src/main directory
17  */
18 package org.opendaylight.controller.config.yang.threadpool.impl;
19
20 import org.opendaylight.controller.config.threadpool.util.CloseableAsyncEventBus;
21
22 /**
23 *
24 */
25 public final class AsyncEventBusModule extends
26         org.opendaylight.controller.config.yang.threadpool.impl.AbstractAsyncEventBusModule {
27
28     public AsyncEventBusModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
29             org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
30         super(identifier, dependencyResolver);
31     }
32
33     public AsyncEventBusModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
34             org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
35             AsyncEventBusModule oldModule, java.lang.AutoCloseable oldInstance) {
36         super(identifier, dependencyResolver, oldModule, oldInstance);
37     }
38
39     @Override
40     public void validate() {
41         super.validate();
42         // Add custom validation for module attributes here.
43     }
44
45     @Override
46     public java.lang.AutoCloseable createInstance() {
47         return new CloseableAsyncEventBus(getIdentifier().toString(), getThreadpoolDependency(),
48                 getRootRuntimeBeanRegistratorWrapper());
49     }
50 }