Stuart McCulloch wrote:
2008/8/18 Alin Dreghiciu <[EMAIL PROTECTED]>

On Sat, Aug 16, 2008 at 6:54 PM, Richard S. Hall <[EMAIL PROTECTED]>
wrote:
Hello everyone,
Currently, we log a WARNING when people install a fragment, which says
that
fragments are not fully supported. We should decide if we want to keep
this
as is or be more specific and indicate the level of fragment support
provided (i.e., no exports, imports, or native code) or we could decide
to
not install fragments that try to use features we don't support. Any
thoughts here?

I would go for not installing those fragments. This way it will be
more clear to the user tof those features that they do not work.


sounds reasonable to me, better than installing it and have it partially
work.
we should also print a warning describing why the fragment wasn't installed

fragments that we can fully support should install without any such warning.

I started to implement this, but I ran into one issue regarding Import-Package, do we disallow this completely? It is easier if I just disallow it for now, but it means that fragments won't be allowed to import org.osgi.framework, which isn't necessary since they will get it from their host, but it might seem odd.

-> richard

--
Alin Dreghiciu
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.
http://malaysia.jayway.net - New Energy for Projects - Great People
working on Great Projects at Great Places




Reply via email to