The onFirstInit refers to the first call to Framework.init() [1] for an instance of the Framework. If you are initializing the framework which is configured with an existing framework cache then this option should cause that storage cache to be cleared. But only the first time you are calling the init method on a particular Framework object instance. If you stop and restart (stop(), init(), start()) that same Framework instance object then it will not clear the cache again, only the first init() call for the framework instance.
[1] http://www.osgi.org/javadoc/r5/core/org/osgi/framework/launch/Framework.html#init () Tom From: "Gilles, Romain" <[email protected]> To: "[email protected]" <[email protected]>, Date: 04/16/2014 09:25 AM Subject: [osgi-dev] Framework Storage Clean property question Sent by: [email protected] Hi all, First of all I want to thank you for the great job you are doing! Secondly I have a question about the property: http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Constants.html#FRAMEWORK_STORAGE_CLEAN I don't understand exactly the result and the available values. My first impression was that if I set it to true it will remove the cache on startup. But it seems my assumption was wrong. Then I see in the Felix documentation that the possible values are "none" (default) or "onFirstInit". But I don't really understand the onFirstInit behavior... Sorry for that. Does it means that each time I'm starting felix or equinox or any framework implementation the cache will be cleaned up or only the first time I'm starting it? What first init means? Because when I start for the first time (after a new install of my framework) there is no cache so there is no need to clean it... Therefore I don't understand the interest of this option in this case. Thank you in advance, Romain. "Misys" is the trade name of the Misys group of companies. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing. _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
<<inline: graycol.gif>>
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
