gudii9
asked on
Configuring a bean as a prototype
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.