2 * Copyright (c) 2014 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
8 package org.opendaylight.controller.configpusherfeature;
10 import org.opendaylight.controller.config.persist.api.ConfigPusher;
11 import org.opendaylight.controller.configpusherfeature.internal.ConfigPusherCustomizer;
12 import org.osgi.framework.BundleActivator;
13 import org.osgi.framework.BundleContext;
14 import org.osgi.util.tracker.ServiceTracker;
16 public class ConfigPusherFeatureActivator implements BundleActivator {
18 BundleContext bc = null;
19 ConfigPusherCustomizer cpc = null;
20 ServiceTracker<ConfigPusher,ConfigPusher> cpst = null;
22 public void start(BundleContext context) throws Exception {
24 cpc = new ConfigPusherCustomizer();
25 cpst = new ServiceTracker<ConfigPusher, ConfigPusher>(bc, ConfigPusher.class.getName(), cpc);
29 public void stop(BundleContext context) throws Exception {