Results 1 to 2 of 2

Thread: How to get a handle to the Bean factory?

  1. #1
    Join Date
    Sep 2004
    Posts
    6

    Default 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. #2
    Join Date
    Sep 2004
    Posts
    8

    Default

    Your bean must implement BeanFactoryAware :

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

Similar Threads

  1. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  2. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  3. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM
  4. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  5. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •