Results 1 to 3 of 3

Thread: Is there a way to not use <list>?

  1. #1
    Join Date
    May 2007
    Posts
    11

    Default Is there a way to not use <list>?

    I am using JdbcBeanDefinitionReader and I don't see a place in there to handle a list. Is there another way to do the following below without using the <list> element?

    <bean id="timerFactory" class="org.springframework.scheduling.timer.TimerF actoryBean">
    <property name="scheduledTimerTasks">
    <list>
    <ref bean="scheduledTask" />
    </list>
    </property>
    </bean>
    Last edited by mleejr; May 11th, 2010 at 10:38 AM.

  2. #2
    Join Date
    Mar 2010
    Location
    New York / Bombay
    Posts
    33

    Default

    You don't need to use <list>, unless the property is a collection.

  3. #3
    Join Date
    May 2007
    Posts
    11

    Default

    Well the example above is straight from the docs (chapter 23). I'm guessing since they use <list> it is therefore a collection. My question is, is there a way to populate this without using <list> such as just one <value> element without the list or something?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •