Package org.springframework.beans.factory.access

Examples of org.springframework.beans.factory.access.BeanFactoryReference


    }
  }

  @Test
  public void testFactoryLocatorContract() throws Exception {
    BeanFactoryReference factory1 = locator1.useBeanFactory(INSTANCE_1);
    assertNotNull(factory1.getFactory());

    factory1.release();
    try {
      factory1.getFactory();
      fail("should have received exception");
    } catch (IllegalArgumentException e) {
      // it's okay
    }
  }
View Full Code Here


            if (super.log.isInfoEnabled()) {
                super.log.debug("retrieving singleton instance " + singletonId);
            }

            BeanFactoryLocator bfl = SingletonBeanFactoryLocator.getInstance();
            BeanFactoryReference bf = bfl.useBeanFactory(singletonId);
            ctx = (ApplicationContext) bf.getFactory();

            if (ctx == null) {
                if (super.log.isInfoEnabled()) {
                    super.log.info("singleton " + beanName + " does not exists");
                }
View Full Code Here

TOP

Related Classes of org.springframework.beans.factory.access.BeanFactoryReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.