X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fnetty-timer-config%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyang%2Fnetty%2Ftimer%2FHashedWheelTimerModuleFactory.java;h=a4049c89e67f6f124dc5bbbb6ff0aa67bc9a9b01;hb=refs%2Fchanges%2F82%2F38282%2F6;hp=e291ab54658e49b0e1ee0f40e805fff6156f8e88;hpb=ac98a714cab7bb4bca57b3a059dc618aabd4fbcc;p=controller.git diff --git a/opendaylight/config/netty-timer-config/src/main/java/org/opendaylight/controller/config/yang/netty/timer/HashedWheelTimerModuleFactory.java b/opendaylight/config/netty-timer-config/src/main/java/org/opendaylight/controller/config/yang/netty/timer/HashedWheelTimerModuleFactory.java index e291ab5465..a4049c89e6 100644 --- a/opendaylight/config/netty-timer-config/src/main/java/org/opendaylight/controller/config/yang/netty/timer/HashedWheelTimerModuleFactory.java +++ b/opendaylight/config/netty-timer-config/src/main/java/org/opendaylight/controller/config/yang/netty/timer/HashedWheelTimerModuleFactory.java @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + /** * Generated file @@ -9,10 +17,28 @@ */ package org.opendaylight.controller.config.yang.netty.timer; +import org.opendaylight.controller.config.api.DependencyResolver; +import org.osgi.framework.BundleContext; + /** -* -*/ -public class HashedWheelTimerModuleFactory extends - org.opendaylight.controller.config.yang.netty.timer.AbstractHashedWheelTimerModuleFactory { + * @deprecated Replaced by blueprint wiring + */ +@Deprecated +public class HashedWheelTimerModuleFactory extends AbstractHashedWheelTimerModuleFactory { + @Override + public HashedWheelTimerModule instantiateModule(String instanceName, DependencyResolver dependencyResolver, + HashedWheelTimerModule oldModule, AutoCloseable oldInstance, BundleContext bundleContext) { + HashedWheelTimerModule module = super.instantiateModule(instanceName, dependencyResolver, oldModule, + oldInstance, bundleContext); + module.setBundleContext(bundleContext); + return module; + } + @Override + public HashedWheelTimerModule instantiateModule(String instanceName, DependencyResolver dependencyResolver, + BundleContext bundleContext) { + HashedWheelTimerModule module = super.instantiateModule(instanceName, dependencyResolver, bundleContext); + module.setBundleContext(bundleContext); + return module; + } }