Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Injecting Scoped Beans

 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do we need to specify a proxy when we inject a scoped bean into another bean?
 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To some extent I can make out that we need a proxy in case of session, request and global session scoped beans. But why not for a prototype scoped bean? I guess when we inject a prototype scoped bean in a singleton, we need the proxy to get to the original new instance of the prototype bean. Am I right?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic