about 1.2.x to 1.6.0 breaking changes.
felix 1.2.x version:
felix 1.6.0 version:
Felix constructor now takes only config map.
If you want to migrate to newer version, change the code like below:
Summary:
felix 1.2.x version:
Map configMap = new StringMap(false);
configMap.put(FelixConstants.EMBEDDED_EXECUTION_PROP, "true");
configMap.put(Constants.FRAMEWORK_SYSTEMPACKAGES, getSystemPackages());
configMap.put(BundleCache.CACHE_PROFILE_DIR_PROP, "cache");
List activators = new ArrayList();
activators.add(this);
new Felix(configMap, activators).start();
felix 1.6.0 version:
Felix constructor now takes only config map.
If you want to migrate to newer version, change the code like below:
List activators = new ArrayList();
activators.add(this);
Map configMap = new StringMap(false);
configMap.put(FelixConstants.SYSTEMBUNDLE_ACTIVATORS_PROP, activators);
configMap.put(Constants.FRAMEWORK_SYSTEMPACKAGES, getSystemPackages());
configMap.put(Constants.FRAMEWORK_STORAGE, "cache");
new Felix(configMap).start();
Summary:
- Use FelixConstants.SYSTEMBUNDLE_ACTIVATORS_PROP (felix.systembundle.activators) instead of FelixConstants.EMBEDDED_EXECUTION_PROP (felix.embedded.execution)
- Set BundleActivators through configMap instead of Felix constructor's parameter.
- Use Constants.FRAMEWORK_STORAGE (org.osgi.framework.storgage) instead of BundleCache.CACHE_PROFILE_DIR_PROP (felix.cache.profiledir)




