Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why to implement BeanNameAware  RSS feed

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have read why to implement BeanNameAware and override the setBeanName()
I still could not understand the use of implementing BeanNameAware


A code snippet :







My query is that typically this is what we will do when calling a DAO from a servlet

from my Servlet we would call




so where is the difference , am i missing something
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!