Bump to odlparent 2.0.0
[controller.git] / opendaylight / config / config-persister-feature4-adapter / src / main / java / org / opendaylight / controller / configpusherfeature / ConfigPusherFeatureActivator.java
diff --git a/opendaylight/config/config-persister-feature4-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/ConfigPusherFeatureActivator.java b/opendaylight/config/config-persister-feature4-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/ConfigPusherFeatureActivator.java
deleted file mode 100644 (file)
index c20c6f9..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) 2014 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
- */
-package org.opendaylight.controller.configpusherfeature;
-
-import org.opendaylight.controller.config.persist.api.ConfigPusher;
-import org.opendaylight.controller.configpusherfeature.internal.ConfigPusherCustomizer;
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-import org.osgi.util.tracker.ServiceTracker;
-
-public class ConfigPusherFeatureActivator implements BundleActivator {
-
-    BundleContext bc = null;
-    ConfigPusherCustomizer cpc = null;
-    ServiceTracker<ConfigPusher,ConfigPusher> cpst = null;
-
-    public void start(final BundleContext context) throws Exception {
-        bc = context;
-        cpc = new ConfigPusherCustomizer();
-        cpst = new ServiceTracker<>(bc, ConfigPusher.class.getName(), cpc);
-        cpst.open();
-    }
-
-    public void stop(final BundleContext context) throws Exception {
-        if(cpst != null) {
-            cpst.close();
-            cpst = null;
-        }
-        if(cpc != null) {
-            cpc.close();
-            cpc = null;
-        }
-        bc = null;
-    }
-}