Add blueprint wiring to the toaster sample
[controller.git] / opendaylight / config / netty-event-executor-config / src / main / java / org / opendaylight / controller / config / yang / netty / eventexecutor / ImmediateEventExecutorModule.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 package org.opendaylight.controller.config.yang.netty.eventexecutor;
9
10 import io.netty.util.concurrent.EventExecutor;
11 import io.netty.util.concurrent.ImmediateEventExecutor;
12 import org.opendaylight.controller.config.yang.netty.eventexecutor.AutoCloseableEventExecutor.CloseableEventExecutorMixin;
13
14 public final class ImmediateEventExecutorModule extends org.opendaylight.controller.config.yang.netty.eventexecutor.AbstractImmediateEventExecutorModule {
15
16     public ImmediateEventExecutorModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
17         super(identifier, dependencyResolver);
18     }
19
20     public ImmediateEventExecutorModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
21                                         ImmediateEventExecutorModule oldModule, java.lang.AutoCloseable oldInstance) {
22
23         super(identifier, dependencyResolver, oldModule, oldInstance);
24     }
25
26     @Override
27     protected void customValidation() {
28         // Add custom validation for module attributes here.
29     }
30
31     @Override
32     public java.lang.AutoCloseable createInstance() {
33         EventExecutor eventExecutor = ImmediateEventExecutor.INSTANCE;
34         return CloseableEventExecutorMixin.createCloseableProxy(eventExecutor);
35     }
36 }