posted 16 years ago
Hello Ranchers,
We do instantiate beans in XML file through the <bean> tag and all those beans are singlton beans. I want to access these beans which got created by the spring in my custom class. Is there any way by which I can access the same instance which the spring has created in my class. I heard about BeanFactoryAware interface but I was not able to get it through it. Can anybody give me the code snippest for the same ? Is there any other way apart from spring injection and BeanFactoryAware interface implementation to access those beans.
Thanks in advance
Samir