Equinox has always ignored the x-internal directive unless configured with the osgi resolver in 'strict' mode. By default the resolver mode was not strict. As BJ said, Equinox for Luna will no longer have an option for 'strict' mode so anything you export is treated the same and publically available for import just like when running on any other OSGi framework. The x-internal directive has no influence at runtime. Eclipse PDE will still give you warnings for inappropriate usage of internal packages (marked with x-internal directive).
Tom From: BJ Hargrave/Austin/IBM@IBMUS To: OSGi Developer Mail List <[email protected]>, Date: 08/09/2013 02:18 PM Subject: Re: [osgi-dev] marking private packages Sent by: [email protected] x-internal *was* an Equinox thing. In Luna it is ignored. -- BJ Hargrave Senior Technical Staff Member, IBM office: +1 386 848 1781 OSGi Fellow and CTO of the OSGi Alliance mobile: +1 386 848 3788 [email protected] From: Raymond Auge <[email protected]> To: OSGi Developer Mail List <[email protected]> Date: 2013/08/09 15:11 Subject: Re: [osgi-dev] marking private packages Sent by: [email protected] btw, is "x-internal" Equinox only? On Fri, Aug 9, 2013 at 3:08 PM, Raymond Auge <[email protected]> wrote: Right! On Fri, Aug 9, 2013 at 3:05 PM, BJ Hargrave <[email protected]> wrote: If a package is not exported, it is private. So there is no marking them private. Just don't export them. -- BJ Hargrave Senior Technical Staff Member, IBM office: +1 386 848 1781 OSGi Fellow and CTO of the OSGi Alliance mobile: +1 386 848 3788 [email protected] From: Raymond Auge <[email protected]> To: OSGi Developer Mail List <[email protected]> Date: 2013/08/09 14:56 Subject: [osgi-dev] marking private packages Sent by: [email protected] Hello, what is the proper way to mark private packages? I know of the bnd Private-Package header. Are there other ways? -- Raymond Augé (@rotty3000) Senior Software Architect Liferay, Inc. (@Liferay) _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev -- Raymond Augé (@rotty3000) Senior Software Architect Liferay, Inc. (@Liferay) -- Raymond Augé (@rotty3000) Senior Software Architect Liferay, Inc. (@Liferay) _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev _______________________________________________ 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
