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

Reply via email to