You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2007/09/18 19:58:43 UTC
[jira] Resolved: (CXF-1025) Streamline aegis configuration
[ https://issues.apache.org/jira/browse/CXF-1025?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-1025.
------------------------------
Resolution: Fixed
Fix Version/s: 2.0.2
Assignee: Daniel Kulp
Patch from CXF-984 contains the fix for this. Patch is applied.
> Streamline aegis configuration
> ------------------------------
>
> Key: CXF-1025
> URL: https://issues.apache.org/jira/browse/CXF-1025
> Project: CXF
> Issue Type: Improvement
> Components: Aegis Databinding
> Affects Versions: 2.0.1
> Reporter: benson margulies
> Assignee: Daniel Kulp
> Fix For: 2.0.2
>
>
> Consider the Spring configuration for an Aegis environment shows below. To change the default value of minOccurs, one has to inject an alternative DefaultTypeMappingRegistry, which one must carefully construct with a constructor argument of 'true'.
> I propose the following:
> a) Demand that all possible type mapping registries in Aegis accept the existing Configuration class (or a subclass, of course).
> b) add a configuration property to the AegisDatabinding that is in turn provided to the data binding, particularly to the default one when configured.
> This would permit a much simpler bit of XML to have the desired effect of setting the defaults.
> <bean id="AegisDatabindingBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding" >
> <property name="typeMappingRegistry">
> <bean class="org.apache.cxf.aegis.type.DefaultTypeMappingRegistry">
> <constructor-arg index="0" value="true"/>
> <property name="configuration">
> <bean class="org.apache.cxf.aegis.type.Configuration">
> <property name="defaultMinOccurs" value="50"/>
> </bean>
> </property>
> </bean>
> </property>
> </bean>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.