Announcement Announcement Module
Collapse
No announcement yet.
How to get a handle to the Bean factory? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get a handle to the Bean factory?

    I want to test a few things and want to directly get a registered bean. How do I get a handle to the bean factory?

    Thanks

    P.S: I know this is a bad thing to do and discouraged, I just want to understand a few things deeper

  • #2
    Your bean must implement BeanFactoryAware :

    http://www.springframework.org/docs/...anfactoryaware

    Comment

    Working...
    X