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] Commented: (FELIX-2746) Composite should support instance configuration
Date Tue, 28 Dec 2010 11:12:46 GMT

    [ https://issues.apache.org/jira/browse/FELIX-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975472#action_12975472
] 

Clement Escoffier commented on FELIX-2746:
------------------------------------------

Fixed in trunk.

Composite configuration is now appended to component instance (<instance>) and service
instance configuration (<service action="instantiate">).

> 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
>             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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message