Results 1 to 2 of 2

Thread: Can MethodInvokingFactoryBean set Collections as arguments?

  1. #1
    Join Date
    Aug 2004
    Location
    NJ
    Posts
    5

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

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

    Spring Modules Team
    http://irbouh.blogspot.com/

Similar Threads

  1. Replies: 3
    Last Post: Aug 30th, 2005, 03:58 AM
  2. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  3. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM
  4. Unclosed Hibernate Connection
    By jvargas in forum Data
    Replies: 4
    Last Post: Mar 28th, 2005, 01:24 PM
  5. Debug exceptions using ContextSingletonBeanFactoryLocator
    By timothygordon32 in forum Container
    Replies: 2
    Last Post: Feb 21st, 2005, 11:19 AM

Posting Permissions

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