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 2013/02/04 13:34:16 UTC
[jira] [Closed] (FELIX-2746) Composite should support instance
configuration
[ https://issues.apache.org/jira/browse/FELIX-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier closed FELIX-2746.
------------------------------------
Assignee: Clement Escoffier
> Composite should support instance configuration
> -----------------------------------------------
>
> Key: FELIX-2746
> URL: https://issues.apache.org/jira/browse/FELIX-2746
> Project: Felix
> Issue Type: Improvement
> Components: iPOJO
> Reporter: Clement Escoffier
> Assignee: Clement Escoffier
> Fix For: iPOJO-1.8.0
>
>
> Composites do not propagate the instance configuration.
> It should be done in order to configure sub-instances and services using composite properties.
> The approach is quite simple. The composite instance configuration can be just appended to the instance and service configurations. This would allow overridding properties using composites too such as in:
> {code}
> <composite name="MySuperComposite">
> <instance component="my.jdbc.consumer.impl">
> <property name="db.url" value="default-value"/>
> </instance>
> <instance component="my.other.jdbc.consumer.impl">
> <property name="db.url" value="default-value"/>
> </instance>
> </composite>
> <instance component="MySuperComposite" name="msc1">
> <property name="db.url" value="jdbc://oracle..."/>
> </instance>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira