Example usage for org.springframework.data.gemfire GemfireUtils GEMFIRE_VERSION

List of usage examples for org.springframework.data.gemfire GemfireUtils GEMFIRE_VERSION

Introduction

In this page you can find the example usage for org.springframework.data.gemfire GemfireUtils GEMFIRE_VERSION.

Prototype

String GEMFIRE_VERSION

To view the source code for org.springframework.data.gemfire GemfireUtils GEMFIRE_VERSION.

Click Source Link

Usage

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);
    }
}