Announcement Announcement Module
Collapse
No announcement yet.
ContextSingletonBeanFactoryLocator Good or Bad Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ContextSingletonBeanFactoryLocator Good or Bad

    Could someone please explain to me the pitfalls of using ContextSingletonBeanFactoryLocator? The BeanFactoryLocator documentation seems to strongly suggest that you not use this class and when you do use it, to use it with caution.

    I have a class with a static getBean method that uses ContextSingletonBeanFactoryLocator to load my beanRefFactory.xml files. I can use this class to access my Spring managed beans from within my Struts actions or within Message Driven Beans. I know I am new to Spring and probably missing some obvious reasons why this is not good coding practice.

    Thanks :?
Working...
X