You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Dimitry Voytenko (JIRA)" <ji...@apache.org> on 2008/05/25 11:53:55 UTC

[jira] Created: (FELIX-575) Support environment capabilities and CapabilityProvider

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.


[jira] Commented: (FELIX-575) Support environment capabilities and CapabilityProvider

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599774#action_12599774 ] 

Richard S. Hall commented on FELIX-575:
---------------------------------------

Yes, this is currently not being handled. I didn't investigate it too closely, but could the EE capability be automatically generated? If so, then it should be straightforward to add this capability to the local repository.

> 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.


[jira] Commented: (FELIX-575) Support environment capabilities and CapabilityProvider

Posted by "Dimitry Voytenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600207#action_12600207 ] 

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

I'm pretty sure it can be generated easily and probably is already available handily in the framework. I assume "Bundle-ExecutionEnvironment" header is already processed in bundle's manifest and it's no different from EE requirements/capabilities.

Somewhat more interesting is the ability to provide your own CapabilityProvider. It could be very useful for providing the capabilities that are otherwise not defined in the bundle's manifest. Could you pls comment on this? 


> 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.


[jira] Commented: (FELIX-575) Support environment capabilities and CapabilityProvider

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600348#action_12600348 ] 

Richard S. Hall commented on FELIX-575:
---------------------------------------

Currently, I don't believe the framework is checking the execution environment. The checking part would be easy, we just need to know the current execution environment. It would be best if we could automatically detect that from existing system properties, but I am not sure if there is a cross-platform way of doing that. Otherwise, we could add some configuration properties that allow people to set capabilities for the system bundle.

> 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.


[jira] Commented: (FELIX-575) Support environment capabilities and CapabilityProvider

Posted by "Dimitry Voytenko (JIRA)" <ji...@apache.org>.
    [ 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.