Announcement Announcement Module
Collapse
No announcement yet.
Use of schema types in custom config tags Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Use of schema types in custom config tags

    First, let me say that the new custom, extensible, configuration framework for the spring container is great. It's really helping us out on our current project, saving us tons of code.

    I may be missing how to do this, but it doesn't seem like the configuration framework uses the schema instance type, only the tag's qname. Here's the specific case we're currently dealing with.

    Schema:
    Code:
    <element name="foo" type="footype"/>
    <complexType name="footype" abstract="true">
        .....
    </complexType>
    
    <complexType name="bartype" />
      <complexContent>
        <extension base="footype">
            ........
        </extension>
      </complexContent>
    </complexType>
    Configuration file:
    Code:
    <foo xsi:type="bartype" />
    Now, ideally what we would like is Spring to lookup the bean definition parser this element based on the schema type, bartype, as there could be any number of foo elements, each with different types.

    First, does Spring currently support this and I just missed it? If not, I'd like to discuss adding it as functionality.

    Thanks.
Working...
X