Announcement Announcement Module
Collapse
No announcement yet.
Array Support in an Application Context Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Array Support in an Application Context

    I need to define a bean in an application context, however the bean requires a constructor arg that is a double[].

    From what I can tell there is no support for arrays in an application context xml definition "http://www.springframework.org/dtd/spring-beans.dtd".

    Has anyone managed to do this, or if it is not supported, are there plan to include support?

  • #2
    To inject an array of double, use the following:
    Code:
    <property name="doubleArrayProperty">
      <list>
        <value>12</value>
        <value>19.5</value>
        <value>.98</value>
      </list>
    </property>
    HTH

    Comment

    Working...
    X