File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes why to implement  BeanNameAware Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "why to implement  BeanNameAware" Watch "why to implement  BeanNameAware" New topic

why to implement BeanNameAware

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

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

Save India From Corruption - Anna Hazare.
subject: why to implement BeanNameAware
It's not a secret anymore!