/** * Constructs a new instance of {@link CacheFactoryBean} used to create a peer {@link Cache}. * * @param <T> {@link Class} sub-type of {@link CacheFactoryBean}. * @return a new instance of {@link CacheFactoryBean}. * @see org.springframework.data.gemfire.CacheFactoryBean */ @Override @SuppressWarnings("unchecked") protected <T extends CacheFactoryBean> T newCacheFactoryBean() { return (T) new CacheFactoryBean(); }
/** * Constructs a new instance of {@link CacheFactoryBean} used to create a peer {@link Cache}. * * @param <T> {@link Class} sub-type of {@link CacheFactoryBean}. * @return a new instance of {@link CacheFactoryBean}. * @see org.springframework.data.gemfire.CacheFactoryBean */ @Override @SuppressWarnings("unchecked") protected <T extends CacheFactoryBean> T newCacheFactoryBean() { return (T) new CacheFactoryBean(); }
@BeforeClass public static void init() throws Exception { cacheFactoryBean = new CacheFactoryBean(); Cache cache = (Cache) cacheFactoryBean.getObject(); region = cache.createRegionFactory().setScope(Scope.LOCAL).create("sig-tests"); }
@BeforeClass public static void startUp() throws Exception { cacheFactoryBean = new CacheFactoryBean(); cacheFactoryBean.afterPropertiesSet(); Cache cache = (Cache) cacheFactoryBean.getObject(); region = cache.createRegionFactory().setScope(Scope.LOCAL).create("sig-tests"); }
@BeforeClass public static void startUp() throws Exception { cacheFactoryBean = new CacheFactoryBean(); cacheFactoryBean.afterPropertiesSet(); Cache cache = (Cache) cacheFactoryBean.getObject(); region = cache.createRegionFactory().setScope(Scope.LOCAL).create("sig-tests"); }
@BeforeClass public static void init() throws Exception { cacheFactoryBean = new CacheFactoryBean(); cacheFactoryBean.afterPropertiesSet(); Cache cache = (Cache) cacheFactoryBean.getObject(); region = cache.createRegionFactory().setScope(Scope.LOCAL).create("sig-tests"); }
@BeforeClass public static void setup() throws Exception { cacheFactoryBean = new CacheFactoryBean(); regionFactoryBean = new GenericRegionFactoryBean<>(); regionFactoryBean.setName("test.receiveNewValuePayloadForCreateEvent"); regionFactoryBean.setCache(cacheFactoryBean.getObject()); setRegionAttributes(regionFactoryBean); regionFactoryBean.afterPropertiesSet(); region = regionFactoryBean.getObject(); }
@Bean @Autowired public CacheFactoryBean gemfireCache(@Qualifier("gemfireProperties") Properties gemfireProperties) throws Exception { CacheFactoryBean cacheFactory = new CacheFactoryBean(); cacheFactory.setProperties(gemfireProperties); return cacheFactory; }