just reading up on spring, and when using DI in spring, if you set the bean to be a singleton (default), then a single instance of the class will be 'dispensed', while prototype forces a new instance each time.
What are the ramifications of having the same instance dispensed by the container each time? does that mean there will be shared state?
i.e. if the instance is modified somewhere, all future object creations will actually be getting a 'dirty' object and not a 'new' one?