felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clement Escoffier (JIRA)" <j...@apache.org>
Subject [jira] Updated: (FELIX-1159) iPOJO instance declaration should be able to select the Factory version
Date Sat, 16 May 2009 12:32:45 GMT

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

Clement Escoffier updated FELIX-1159:

Fixed in the trunk

Add a 'version' attribute to component type and instances allowing to select the component
type version when an instance is declared.
<component classname="..." version="1.0"/>
<component classname="..." version="1.1"/>
<instance component="..." version="1.0"/> -> Use the version 1.0
<instance component="..." version="1.1"/> -> Use the version 1.1
<instance component="..."/> -> Any version

This commit also define the "bundle" constant reusing the bundle version:
<component classname="..." version="bundle"/> -> Use the bundle version

The API also supports the version API, add a getVersion method in the ComponentTypeDescription
and in the Factory interface.

> iPOJO instance declaration should be able to select the Factory version
> -----------------------------------------------------------------------
>                 Key: FELIX-1159
>                 URL: https://issues.apache.org/jira/browse/FELIX-1159
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>    Affects Versions: iPOJO-1.2.0
>            Reporter: Clement Escoffier
>            Assignee: Clement Escoffier
>   Original Estimate: 0h
>  Remaining Estimate: 0h
> Currently, when declaring an instance, the factory is only selected by its name. This
can be tricky when several version are available. 
> iPOJO instance declaration should support a 'version' attribute specifying the required
version (exact match). This attribute will be exposed by the factory service (if specified
in its declaration). So this will result into something like:
> <component classname="..." version="1.0.0" .../>
> and
> <instance component="..." version="1.0.0" .../>
> Be aware that this feature is not compatible with the configuration admin that select
the ManagedServiceFactory based on its PID (i.e. factory name).
> This request for feature comes from the following mail:
> http://www.nabble.com/iPojo---How-to-create-several-instances-of-the-same-component-installed-in-different-versions-tp23544877p23544877.html

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

View raw message