You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Thomas Diesler <th...@jboss.com> on 2010/06/10 09:57:45 UTC

Apache Felix Resolver integration

Hi Folks,

The JBossOSGi Framework now sucessfully integrates the Felix Resolver.

The code for the resolver integration is here

http://github.com/jbosgi/jbosgi-framework/tree/master/resolver/src/main/java/org/jboss/osgi/framework/resolver

By design, this module does not have a dependency on the jboss 
framework. Instead it extends the felix resolver API to cleanup and 
provide the necessary extension points for an arbitary framework to 
integrate with the felix resolver.

Unfortunately, some changes to the felix resolver API were necessary to 
remove dependencies on felix framework internals.

I made those changes to the jbosg320 branch 
<http://github.com/jbosgi/felix-framework/tree/jbosgi320> on the 
felix-framework git-svn mirror 
<http://github.com/jbosgi/felix-framework/network>. (You can click on 
the blue dots to see the content of the individual commits)

Ideally, and over time those abstract classes in 
org.jboss.osgi.framework.resolver would bubble up to the felix code base 
and felix would provide a standalone resolver maven artifact that is 
independent of the felix framework (I could help with that if needed)

more ...
https://community.jboss.org/thread/152983?tstart=0

cheers
-thomas


-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx


Re: Apache Felix Resolver integration

Posted by "Richard S. Hall" <he...@ungoverned.org>.
On 6/10/10 3:57, Thomas Diesler wrote:
> Hi Folks,
>
> The JBossOSGi Framework now sucessfully integrates the Felix Resolver.
>
> The code for the resolver integration is here
>
> http://github.com/jbosgi/jbosgi-framework/tree/master/resolver/src/main/java/org/jboss/osgi/framework/resolver
>
> By design, this module does not have a dependency on the jboss 
> framework. Instead it extends the felix resolver API to cleanup and 
> provide the necessary extension points for an arbitary framework to 
> integrate with the felix resolver.
>
> Unfortunately, some changes to the felix resolver API were necessary 
> to remove dependencies on felix framework internals.
>
> I made those changes to the jbosg320 branch 
> <http://github.com/jbosgi/felix-framework/tree/jbosgi320> on the 
> felix-framework git-svn mirror 
> <http://github.com/jbosgi/felix-framework/network>. (You can click on 
> the blue dots to see the content of the individual commits)
>
> Ideally, and over time those abstract classes in 
> org.jboss.osgi.framework.resolver would bubble up to the felix code 
> base and felix would provide a standalone resolver maven artifact that 
> is independent of the felix framework (I could help with that if needed)
>

Good news that you were able to do it.

As I've mentioned to you previously, the API for the resolver was not 
completed for the 3.0 framework release, which is why our JIRA issue for 
moving it to a separate module was pushed back to 3.2. However, that's 
still the goal, to make it completely separate.

It looks like most of your changes relate to the precise issue that I 
mentioned to you that needs to be fixed, which is how the resolver deals 
with fragments. So, in that regard it is good, because assuming I can 
fix it the way that I envision it, then it should resolve your issue for 
the most part.

The reason you are seeing impl dependencies is because 
FelixResolverState _is_ part of the framework impl, only the stuff in 
the resolver package is part of the resolver. But this leads to the crux 
of the issue, since FelixResolverState is needed to handle fragments. 
Hopefully, we can fix that.

Thanks for your feedback.

-> richard

> more ...
> https://community.jboss.org/thread/152983?tstart=0
>
> cheers
> -thomas
>
>
> -- 
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thomas Diesler
> JBoss OSGi Lead
> JBoss, a division of Red Hat
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Re: Apache Felix Resolver integration

Posted by Thomas Diesler <th...@jboss.com>.
Hi Karl,

 > I like the way you hide the bundleprotectiondomain

There are various other changes like this. Also the Module has changed 
from immutable to mutable (i.e. it now has some setters). A possible way 
forward would be to provide abstract classes for the interfaces (as I 
did) and only have protected setters on those classes. In that way a 
client of the resolver would have an immutable view, but an implementor 
of the extension points can write.

With git it is very easy to provide a pach for what I did. If you like I 
can do that, but perhaps it would equally be easy for you to clone the 
jbosgi320 branch and do the 'git diff' yourself.

I could also continue on that branch and move forward in a direction 
that we previously aggreed on.

cheers
-thomas

PS: I'll probably meet with Richard in Ottawa next month.

On 06/10/2010 10:43 AM, Karl Pauls wrote:
> On Thu, Jun 10, 2010 at 9:57 AM, Thomas Diesler
> <th...@jboss.com>  wrote:
>> Hi Folks,
>>
>> The JBossOSGi Framework now sucessfully integrates the Felix Resolver.
>
> Cool :-)
>
>> The code for the resolver integration is here
>>
>> http://github.com/jbosgi/jbosgi-framework/tree/master/resolver/src/main/java/org/jboss/osgi/framework/resolver
>>
>> By design, this module does not have a dependency on the jboss framework.
>> Instead it extends the felix resolver API to cleanup and provide the
>> necessary extension points for an arbitary framework to integrate with the
>> felix resolver.
>>
>> Unfortunately, some changes to the felix resolver API were necessary to
>> remove dependencies on felix framework internals.
>
> Well, we are not yet done with factoring out the resolver...
>
>> I made those changes to the jbosg320 branch
>> <http://github.com/jbosgi/felix-framework/tree/jbosgi320>  on the
>> felix-framework git-svn mirror
>> <http://github.com/jbosgi/felix-framework/network>. (You can click on the
>> blue dots to see the content of the individual commits)
>>
>> Ideally, and over time those abstract classes in
>> org.jboss.osgi.framework.resolver would bubble up to the felix code base and
>> felix would provide a standalone resolver maven artifact that is independent
>> of the felix framework (I could help with that if needed)
>
> Indeed, the idea is to make the resolver available standalone
> eventually. The main reason we didn't do it right now is that we first
> want to feel confident that we can support the api. Its great if
> people start to use it but having it inside the framework for now
> emphasises the fact that it is still in an "might be changed for any
> internal reason" state.
>
> Anyways, now that we have felix 3.0.0 almost out of the door we should
> be able to get back to the resolver api soon. Great to know that we
> seem to be almost there in regard to being usable outside of the
> framework. I like the way you hide the bundleprotectiondomain - didn't
> think of it before. Nice.
>
> regards,
>
> Karl
>
>> more ...
>> https://community.jboss.org/thread/152983?tstart=0
>>
>> cheers
>> -thomas
>>
>>
>> --
>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> Thomas Diesler
>> JBoss OSGi Lead
>> JBoss, a division of Red Hat
>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>
>>
>
>
>

-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx


Re: Apache Felix Resolver integration

Posted by Karl Pauls <ka...@gmail.com>.
On Thu, Jun 10, 2010 at 9:57 AM, Thomas Diesler
<th...@jboss.com> wrote:
> Hi Folks,
>
> The JBossOSGi Framework now sucessfully integrates the Felix Resolver.

Cool :-)

> The code for the resolver integration is here
>
> http://github.com/jbosgi/jbosgi-framework/tree/master/resolver/src/main/java/org/jboss/osgi/framework/resolver
>
> By design, this module does not have a dependency on the jboss framework.
> Instead it extends the felix resolver API to cleanup and provide the
> necessary extension points for an arbitary framework to integrate with the
> felix resolver.
>
> Unfortunately, some changes to the felix resolver API were necessary to
> remove dependencies on felix framework internals.

Well, we are not yet done with factoring out the resolver...

> I made those changes to the jbosg320 branch
> <http://github.com/jbosgi/felix-framework/tree/jbosgi320> on the
> felix-framework git-svn mirror
> <http://github.com/jbosgi/felix-framework/network>. (You can click on the
> blue dots to see the content of the individual commits)
>
> Ideally, and over time those abstract classes in
> org.jboss.osgi.framework.resolver would bubble up to the felix code base and
> felix would provide a standalone resolver maven artifact that is independent
> of the felix framework (I could help with that if needed)

Indeed, the idea is to make the resolver available standalone
eventually. The main reason we didn't do it right now is that we first
want to feel confident that we can support the api. Its great if
people start to use it but having it inside the framework for now
emphasises the fact that it is still in an "might be changed for any
internal reason" state.

Anyways, now that we have felix 3.0.0 almost out of the door we should
be able to get back to the resolver api soon. Great to know that we
seem to be almost there in regard to being usable outside of the
framework. I like the way you hide the bundleprotectiondomain - didn't
think of it before. Nice.

regards,

Karl

> more ...
> https://community.jboss.org/thread/152983?tstart=0
>
> cheers
> -thomas
>
>
> --
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thomas Diesler
> JBoss OSGi Lead
> JBoss, a division of Red Hat
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
>



-- 
Karl Pauls
karlpauls@gmail.com