[ 
https://issues.apache.org/jira/browse/FELIX-5916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karl Pauls resolved FELIX-5916.
-------------------------------
    Resolution: Invalid

I think you are reading this wrong. The thing is, framework embeds the resolver 
- hence, there is no need to put the resolver on the classpath in order to use 
the framework. This is because you can't use the framework without the 
resolver. 

Conversely, while it is true that the resolver has some dependencies on osgi 
classes, it doesn't have a dependency on the framewor (it just looks like that 
because the framework happens to provide the osgi packages as well). This is 
because the resolver can be used independent of the framework (it just needs 
the osgi packages on the classpath/resolved - which can come from e.g. the 
official osgi jars).

 

I'll resolve this one as Invalid for now. Feel free to ask for a follow-up if 
the above wasn't clear. 

> Felix Framework - dependency on org.apache.felix.resolver
> ---------------------------------------------------------
>
>                 Key: FELIX-5916
>                 URL: https://issues.apache.org/jira/browse/FELIX-5916
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: framework-6.0.0
>            Reporter: Tom Rutchik
>            Priority: Major
>
> Here's an observation:
> the Felix framework has a dependence on "org.apache.felix.resolver".  If one 
> embeds the felix framework they must also embed the jar containing 
> "org.apache.felix.resolver.
> It's not necessary a bad thing, but the only reason it needs that jar is 
> because it the framework Logger class extends 
> "org.apache.felix.resolver.Logger".  (Hopefully, I'm not get this wrong, but 
> that's all that it looks like to me.) This Logger class only imports 
> "org.osgi.resource.Resource" which is contained in the Framework jar.
> So if you moved the "{color:#333333}org.apache.felix.resolver.Logger{color}" 
> class contained in the resolver jar to the framework jar then all anyone 
> needs to embed the felix framework into their app is just the framework jar.  
> That's probably a cleaner organization.  That's all that one needed to do in 
> the 5.6.10 version. (Albeit, there might be a dependency on 
> "org.osgi.annotation"; I don't remember for sure).  That then makes the 
> resolver just another bundle added to the framework.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to