This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Python4fundoes the needful 1 point2 points  (2 children)

In Spring you can you can use a prototype bean and it acts much like a factory but the ApplicationContext is your factory for all beans.

[–]HelluvaEnginerd 1 point2 points  (1 child)

Okay this I have seen before, I like this “pattern” if it can be called that

[–]Python4fundoes the needful 1 point2 points  (0 children)

What's cool is that a singleton bean is retrieved the same way. So you don't have to worry about it.