Wiring lists and arrays in spring

Posted on 2011-05-04
Last Modified: 2012-05-11
I was reading folowing line and I did not understand clearly.

Wiring lists and arrays

 When using Hibernate with Spring,
you willl wire a LocalSessionFactoryBean into the container. The LocalSession
FactoryBean has a mappingResources property that takes a List of Strings containing
the names of Hibernate mapping files. Here’s a snippet of XML that we will
introduce to the bean wiring file when we get around to talking about Hibernate:
<bean id="sessionFactory" class=
<property name="mappingResources">

Although the previous snippet wires a List of String values, you are not limited
to using only <value>s as entries in a <list>. You may use any element that is
valid when wiring a singular property, including <value>, <ref>, or even another
collection such as <list>. The only limitation is in what your beans expectations
 you can not wire in a List of Foos when your bean is expecting a List of Bars.

Any ideas, resources,sample code,links, highly appreciated. thanks in advance.
Question by:gudii9
    1 Comment
    LVL 92

    Accepted Solution

    Its saying you your list can also contain beans

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
    Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
    The viewer will learn how to implement Singleton Design Pattern in Java.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now