You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2009/05/15 11:06:45 UTC
[jira] Created: (FELIX-1159) iPOJO instance declaration should be
able to select the Factory version
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
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.
[jira] Updated: (FELIX-1159) iPOJO instance declaration should be
able to select the Factory version
Posted by "Clement Escoffier (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (FELIX-1159) iPOJO instance declaration should be
able to select the Factory version
Posted by "Clement Escoffier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier resolved FELIX-1159.
--------------------------------------
Resolution: Fixed
> 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.
[jira] Work started: (FELIX-1159) iPOJO instance declaration should
be able to select the Factory version
Posted by "Clement Escoffier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on FELIX-1159 started by Clement Escoffier.
> 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.
[jira] Updated: (FELIX-1159) iPOJO instance declaration should be
able to select the Factory version
Posted by "Clement Escoffier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier updated FELIX-1159:
-------------------------------------
I improve the fix to add the annotation support. Now, the @Component annotation supports the 'version' attribute:
@Component(version="1.0.0", ...)
public class Foo {
// ...
}
> 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.
[jira] Updated: (FELIX-1159) iPOJO instance declaration should be
able to select the Factory version
Posted by "Clement Escoffier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier updated FELIX-1159:
-------------------------------------
Remaining Estimate: 0h
Original Estimate: 0h
> 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.