netty-event-executor-config: final parameters
[controller.git] / opendaylight / config / netty-event-executor-config / src / main / java / org / opendaylight / controller / config / yang / netty / eventexecutor / GlobalEventExecutorModuleFactory.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: netty-event-executor  yang module local name: netty-global-event-executor
13  * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
14  * Generated at: Tue Nov 12 10:44:21 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.netty.eventexecutor;
19
20 import static com.google.common.base.Preconditions.checkArgument;
21 import org.opendaylight.controller.config.api.DependencyResolver;
22 import org.osgi.framework.BundleContext;
23
24 /**
25  * @deprecated Replaced by blueprint wiring
26  */
27 @Deprecated
28 public class GlobalEventExecutorModuleFactory extends org.opendaylight.controller.config.yang.netty.eventexecutor.AbstractGlobalEventExecutorModuleFactory {
29     public static final String SINGLETON_NAME = "singleton";
30
31
32     @Override
33     public GlobalEventExecutorModule instantiateModule(final String instanceName, final DependencyResolver dependencyResolver, final GlobalEventExecutorModule oldModule, final AutoCloseable oldInstance, final BundleContext bundleContext) {
34         checkArgument(SINGLETON_NAME.equals(instanceName),"Illegal instance name '" + instanceName + "', only allowed name is " + SINGLETON_NAME);
35         GlobalEventExecutorModule module = super.instantiateModule(instanceName, dependencyResolver, oldModule,
36                 oldInstance, bundleContext);
37         module.setBundleContext(bundleContext);
38         return module;
39     }
40
41     @Override
42     public GlobalEventExecutorModule instantiateModule(final String instanceName, final DependencyResolver dependencyResolver, final BundleContext bundleContext) {
43         checkArgument(SINGLETON_NAME.equals(instanceName),"Illegal instance name '" + instanceName + "', only allowed name is " + SINGLETON_NAME);
44         GlobalEventExecutorModule module = super.instantiateModule(instanceName, dependencyResolver, bundleContext);
45         module.setBundleContext(bundleContext);
46         return module;
47     }
48 }