Hi Guys,

  First, Glad to see felix 4.0.0 released and provide OSGi 4.3 new features.  
Thank you for your greate job.

  But I meet a small problem, that the 
org.osgi.framework.launch.FrameworkFactory.newFramework() need a Map<String, 
String> for its parameter now.  It means that I could not pass a Object to 
configMap.

  Unfortunately, I need put a SystemBundleActivator to the framework,  So you 
will see codes like below:

configMap.put(FelixConstants.SYSTEMBUNDLE_ACTIVATORS_PROP, 
Collections.singletonList(activator));

  which is not allow in OSGi 4.3.  I digged the source of Felix.java, there is 
also some config parameter using non-string type,  E.G.

m_logger = (Logger) m_configMutableMap.get(FelixConstants.LOG_LOGGER_PROP); 

  So I guess, if I still want to use Felix non-standard config parameter, then 
I cannot use FrameworkFactory any more.

  Is there anyway that I could still using FrameworkFactory?  Any suggestion 
will be appreciated.  Thank you very much.



  PS: the download URL of felix source in home page is broken.

http://labs.renren.com/apache-mirror//felix/org.apache.felix.framework-4.0.0-project.zip
 

  I think it should be changed to 

http://labs.renren.com/apache-mirror//felix/org.apache.felix.framework-4.0.0-source-release.zip
 


2011-09-27 



XuHuisheng 

Reply via email to