Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2746

Composite should support instance configuration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • iPOJO-1.8.0
    • iPOJO
    • None

    Description

      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:

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

      Attachments

        Activity

          People

            clement.escoffier Clement Escoffier
            clement.escoffier Clement Escoffier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: