String resolveDereferencedId(Element element) { return SpringUtils.dereferenceBean(resolveId(element)); }
String resolveDereferencedId(Element element) { return SpringUtils.dereferenceBean(resolveId(element)); }
/** * Resolves the {@link Pool} used to configure the {@link ClientCache}, {@literal DEFAULT} {@link Pool}. * * @return the resolved {@link Pool} used to configure the {@link ClientCache}, {@literal DEFAULT} {@link Pool}. * @see org.apache.geode.cache.client.PoolManager#find(String) * @see org.apache.geode.cache.client.Pool * @see #getPoolName() * @see #getPool() * @see #findPool(String) * @see #isPoolNameResolvable(String) */ Pool resolvePool() { Pool pool = getPool(); if (pool == null) { String poolName = resolvePoolName(); pool = findPool(poolName); if (pool == null && isPoolNameResolvable(poolName)) { String dereferencedPoolName = SpringUtils.dereferenceBean(poolName); PoolFactoryBean poolFactoryBean = getBeanFactory().getBean(dereferencedPoolName, PoolFactoryBean.class); return poolFactoryBean.getPool(); } } return pool; }
/** * Resolves the {@link Pool} used to configure the {@link ClientCache}, {@literal DEFAULT} {@link Pool}. * * @return the resolved {@link Pool} used to configure the {@link ClientCache}, {@literal DEFAULT} {@link Pool}. * @see org.apache.geode.cache.client.PoolManager#find(String) * @see org.apache.geode.cache.client.Pool * @see #getPoolName() * @see #getPool() * @see #findPool(String) * @see #isPoolNameResolvable(String) */ Pool resolvePool() { Pool pool = getPool(); if (pool == null) { String poolName = resolvePoolName(); pool = findPool(poolName); if (pool == null && isPoolNameResolvable(poolName)) { String dereferencedPoolName = SpringUtils.dereferenceBean(poolName); PoolFactoryBean poolFactoryBean = getBeanFactory().getBean(dereferencedPoolName, PoolFactoryBean.class); return poolFactoryBean.getPool(); } } return pool; }