Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
1.1
-
None
-
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.