2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
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
16 * Do not modify this file unless it is present under src/main directory
18 package org.opendaylight.controller.config.yang.netty.eventexecutor;
20 import static com.google.common.base.Preconditions.checkArgument;
21 import org.opendaylight.controller.config.api.DependencyResolver;
22 import org.osgi.framework.BundleContext;
25 * @deprecated Replaced by blueprint wiring
28 public class GlobalEventExecutorModuleFactory extends org.opendaylight.controller.config.yang.netty.eventexecutor.AbstractGlobalEventExecutorModuleFactory {
29 public static final String SINGLETON_NAME = "singleton";
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);
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);