Package org.springframework.data.gemfire

Examples of org.springframework.data.gemfire.GemfireBeanFactoryLocator$SimpleBeanFactoryReference


  private String INSTANCE_1 = "instance1";
  private String INSTANCE_2 = "instance2";

  @Before
  public void init() {
    locator1 = new GemfireBeanFactoryLocator();
    locator1.setBeanName(INSTANCE_1);
    locator1.setBeanFactory(applicationContext);
    locator1.afterPropertiesSet();

    locator2 = new GemfireBeanFactoryLocator();
    locator2.setBeanName(INSTANCE_2);
    locator2.setBeanFactory(applicationContext);
    locator2.afterPropertiesSet();
  }
View Full Code Here


    CacheFactoryBean cacheFactoryBean = context.getBean("&no-bean-factory-locator", CacheFactoryBean.class);

    assertThat(ReflectionTestUtils.getField(cacheFactoryBean, "factoryLocator"), is(nullValue()));

    GemfireBeanFactoryLocator beanFactoryLocator = new GemfireBeanFactoryLocator();

    try {
      assertNotNull(beanFactoryLocator.useBeanFactory("cache-with-name"));
      beanFactoryLocator.useBeanFactory("no-bean-factory-locator");
    }
    finally {
      beanFactoryLocator.destroy();
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.gemfire.GemfireBeanFactoryLocator$SimpleBeanFactoryReference

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.