Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1025

Streamline aegis configuration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2
    • Aegis Databinding
    • None

    Description

      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>

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            bmargulies Benson Margulies
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: