Uploaded image for project: 'HiveMind'
  1. HiveMind
  2. HIVEMIND-140

may separate configuration-point and configuration schema so configuration-point provide config data and <schema> define config-schema and eliminate the using of contribution element in configuration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 1.1
    • None
    • framework
    • None

    Description

      I think that the using of current service configuration is a little complex ,think about the following example
      1. define configuration data schema
      <configuration-point id="mail_source_config_2">
      <schema>
      <element name="mail-source">
      <attribute name="host" required="true"/>
      <attribute name="user" required="true"/>
      <conversion class="hellow.MailSource">
      <map attribute="host" property="host" />
      <map attribute="user" property="user"/>
      </conversion>
      </element>
      </schema>
      </configuration-point>
      2.define the configuration data
      <contribution configuration-id="mail_source_config_2">
      <mail-source host="host1" user="user1"/>
      </contribution>
      </module>
      3. reference the contribution (why not configuration-point ?) to service config property
      <set-configuration property="config" configuration-id="april2.schemas.mail_source_config_2"/>

      in this way ,I can't reuse the configuration schema ,because <contribution> element no Id
      I surgest that it can changed like the following :
      1. define configuration schema
      <schema id="mail_source_config_2_schema">
      <element name="mail-source">
      <attribute name="host" required="true"/>
      <attribute name="user" required="true"/>
      <conversion class="hellow.MailSource">
      <map attribute="host" property="host" />
      <map attribute="user" property="user"/>
      </conversion>
      </element>
      </schema>
      2. define the configuration data
      <configuration-point id="mail_source_config_2" schema="mail_source_config_2_schema"">
      <mail-source host="host1" user="user1"/>
      </configuration-point>

      thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            etome2008 wu zhi hui
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: