Announcement Announcement Module
Collapse
No announcement yet.
Can MethodInvokingFactoryBean set Collections as arguments? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can MethodInvokingFactoryBean set Collections as arguments?

    I must be missing something here, or I've just been staring at this
    too long... I need to call a method on an instance that I access via
    a factory. I just changed the method so that it takes a Collection as
    it's single argument. However, when I try to specify that the argument
    to the method is a <list>, I believe the MethodInvokingFactoryBean
    is interpreting my <list> as the list of arguments instead of an
    argument that is a list (Collection). Is there a way to do this?

  • #2
    You could use the following:
    Code:
      <property name="arguments">
        <list>
          <list>
            <value>value 1</value>
            <value>value 2</value>
          </list>
        </list>
      </property>
    HTH

    Comment

    Working...
    X