cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "benson margulies (JIRA)" <>
Subject [jira] Created: (CXF-1025) Streamline aegis configuration
Date Sun, 16 Sep 2007 17:43:32 GMT
Streamline aegis configuration

                 Key: CXF-1025
             Project: CXF
          Issue Type: Improvement
          Components: Aegis Databinding
    Affects Versions: 2.0.1
            Reporter: benson margulies

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

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message