Example usage for org.apache.commons.lang3.text StrSubstitutor DEFAULT_SUFFIX

List of usage examples for org.apache.commons.lang3.text StrSubstitutor DEFAULT_SUFFIX

Introduction

In this page you can find the example usage for org.apache.commons.lang3.text StrSubstitutor DEFAULT_SUFFIX.

Prototype

StrMatcher DEFAULT_SUFFIX

To view the source code for org.apache.commons.lang3.text StrSubstitutor DEFAULT_SUFFIX.

Click Source Link

Document

Constant for the default variable suffix.

Usage

From source file:org.eclipse.hawkbit.repository.jpa.rsql.VirtualPropertyResolverTest.java

@Before
public void before() {
    when(confMgmt.getConfigurationValue(TenantConfigurationKey.POLLING_TIME_INTERVAL, String.class))
            .thenReturn(TEST_POLLING_TIME_INTERVAL);
    when(confMgmt.getConfigurationValue(TenantConfigurationKey.POLLING_OVERDUE_TIME_INTERVAL, String.class))
            .thenReturn(TEST_POLLING_OVERDUE_TIME_INTERVAL);

    substitutor = new StrSubstitutor(resolverUnderTest, StrSubstitutor.DEFAULT_PREFIX,
            StrSubstitutor.DEFAULT_SUFFIX, StrSubstitutor.DEFAULT_ESCAPE);
}

From source file:org.eclipse.hawkbit.repository.rsql.VirtualPropertyResolver.java

@Override
public String replace(final String input) {
    if (substitutor == null) {
        substitutor = new StrSubstitutor(this, StrSubstitutor.DEFAULT_PREFIX, StrSubstitutor.DEFAULT_SUFFIX,
                StrSubstitutor.DEFAULT_ESCAPE);
    }//from  w  w w  . j  a  v  a  2  s.c  o  m
    return substitutor.replace(input);
}