[ 
https://issues.apache.org/jira/browse/FELIX-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600657#action_12600657
 ] 

Dimitry Voytenko commented on FELIX-575:
----------------------------------------

I just realized, the actual proper name of the property is 
"Bundle-RequiredExecutionEnvironment". I believe it's described in detail OSGi 
spec. I believe the only way to check it against the JVM's environment is using 
system properties via standard variables: 
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getProperties().

>> Otherwise, we could add some configuration properties that allow people to 
>> set capabilities for the system bundle.

I think this would be extremely useful. I believe CapabilityProvider is there 
just for that. Unfortunately, I don't see enough details on how this interfaces 
should be supported/extended in the OBR spec. It's generally pretty 
straightforward, but extensibility is not quite clear. Possibly it's meant to 
be extended via OSGi's declarative services?


> Support environment capabilities and CapabilityProvider
> -------------------------------------------------------
>
>                 Key: FELIX-575
>                 URL: https://issues.apache.org/jira/browse/FELIX-575
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>            Reporter: Dimitry Voytenko
>
> It looks like environment capabilities are not supported. I tested with the 
> following example from OBR spec "5.9.7 Bundle-Execution Environment":
>   <require optional='false' multiple='false' name="ee" 
> filter="(|(ee=J2SE-1.4))"/>
> However, it doesn't look like Felix is currently using environment' 
> capabilities to satisfy such requirements.
> Additionally, I could find how one could add such capabilities using 
> CapabilityProvider as described by the spec as well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to