SGF-498 - Fix apache-geode build due to recent changes in Apache Geode that removed the SharedConfiguration.destroySharedConfiguration() method from the API.

This commit is contained in:
John Blum
2016-05-08 18:23:43 -07:00
parent 54befa0522
commit b42442d9cd
2 changed files with 11 additions and 18 deletions

View File

@@ -24,8 +24,10 @@ import org.springframework.util.StringUtils;
import com.gemstone.gemfire.cache.GemFireCache;
import com.gemstone.gemfire.cache.server.CacheServer;
import com.gemstone.gemfire.distributed.DistributedSystem;
import com.gemstone.gemfire.distributed.Locator;
import com.gemstone.gemfire.distributed.internal.DistributionConfig;
import com.gemstone.gemfire.distributed.internal.InternalDistributedSystem;
import com.gemstone.gemfire.distributed.internal.InternalLocator;
import com.gemstone.gemfire.internal.DistributionLocator;
/**
@@ -89,4 +91,9 @@ public abstract class DistributedSystemUtils extends SpringUtils {
return (gemfireCache != null ? (T) gemfireCache.getDistributedSystem() : null);
}
/* (non-Javadoc)*/
@SuppressWarnings("unchecked")
public static <T extends Locator> T getLocator() {
return (T) InternalLocator.getLocator();
}
}