prototype-scope Questions

4

Solved

I want to know when should I exactly use the prototype scope in Spring? I have understood that singleton returns the same object instance if the bean is requested for. Then why should we consider p...
Bradleybradly asked 23/2, 2014 at 13:48

5

I have two beans, Parent and Child. Child bean I have declared as of Protoype scope. I want new child object is used to call any child's method in the Parent class. For eg. in the below example,I w...
Moultrie asked 10/12, 2012 at 14:12

5

I have a prototype-scope bean, which I want to be injected by @Autowired annotation. In this bean, there is also @PostConstruct method which is not called by Spring and I don't understand why. My ...
Bedlam asked 27/2, 2018 at 11:25

4

I have clear understanding of the various scopes of Spring beans. But I am looking for some use cases of prototype scope of a bean in enterprise tier projects. It would be great if you can share so...
Avidin asked 12/3, 2012 at 9:49
1

© 2022 - 2024 — McMap. All rights reserved.