List of usage examples for org.springframework.data.gemfire GemfireUtils GEMFIRE_VERSION
String GEMFIRE_VERSION
To view the source code for org.springframework.data.gemfire GemfireUtils GEMFIRE_VERSION.
Click Source Link
From source file:org.springframework.data.gemfire.config.ParsingUtils.java
static void throwExceptionIfNotGemfireV7(String elementName, String attributeName, ParserContext parserContext) {/*from ww w . java 2s . co m*/ if (!GemfireUtils.isGemfireVersion7OrAbove()) { String messagePrefix = (attributeName != null) ? String.format("Attribute '%1$s' of element '%2$s'", attributeName, elementName) : String.format("Element '%1$s'", elementName); parserContext.getReaderContext() .error(String.format("%1$s requires GemFire version 7 or later. The current version is %2$s.", messagePrefix, GemfireUtils.GEMFIRE_VERSION), null); } }