Configuring a bean as a prototype

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

Configuring a bean as a prototype may be useful if you would like to use the Spring
context as a factory for new instances of domain objects, such as Student or
Course objects. As prototype beans, you would be able to easily configure the
objects at the factory level, while still guaranteeing that the
factory would dispense a unique instance each time you ask for a domain object.

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

    Accepted Solution


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    how to extract window origin in spring 2 55
    array6 challenfge 6 49
    strCopies  challenge 17 60
    Systems talking to each other 5 38
    INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
    Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
    Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

    754 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

    21 Experts available now in Live!

    Get 1:1 Help Now