Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove yang-test
[controller.git]
/
opendaylight
/
config
/
config-persister-feature-adapter
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
configpusherfeature
/
ConfigPusherFeatureActivator.java
diff --git
a/opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/ConfigPusherFeatureActivator.java
b/opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/ConfigPusherFeatureActivator.java
index ea99579f16468b070cef861765dc1dbf509cc21c..99334da488b5c795ae446679947d83a1f24ac17d 100644
(file)
--- a/
opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/ConfigPusherFeatureActivator.java
+++ b/
opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/ConfigPusherFeatureActivator.java
@@
-14,24
+14,23
@@
import org.osgi.framework.BundleContext;
import org.osgi.util.tracker.ServiceTracker;
public class ConfigPusherFeatureActivator implements BundleActivator {
import org.osgi.util.tracker.ServiceTracker;
public class ConfigPusherFeatureActivator implements BundleActivator {
+ private BundleContext bc = null;
+ private ConfigPusherCustomizer cpc = null;
+ private ServiceTracker<ConfigPusher, ConfigPusher> cpst = null;
- BundleContext bc = null;
- ConfigPusherCustomizer cpc = null;
- ServiceTracker<ConfigPusher,ConfigPusher> cpst = null;
-
- public void start(BundleContext context) throws Exception {
+ public void start(final BundleContext context) throws Exception {
bc = context;
cpc = new ConfigPusherCustomizer();
bc = context;
cpc = new ConfigPusherCustomizer();
- cpst = new ServiceTracker<
ConfigPusher, ConfigPusher
>(bc, ConfigPusher.class.getName(), cpc);
+ cpst = new ServiceTracker<>(bc, ConfigPusher.class.getName(), cpc);
cpst.open();
}
cpst.open();
}
- public void stop(BundleContext context) throws Exception {
- if(cpst != null) {
+ public void stop(
final
BundleContext context) throws Exception {
+ if
(cpst != null) {
cpst.close();
cpst = null;
}
cpst.close();
cpst = null;
}
- if(cpc != null) {
+ if
(cpc != null) {
cpc.close();
cpc = null;
}
cpc.close();
cpc = null;
}