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

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

Introduction

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

Prototype

StrMatcher DEFAULT_PREFIX

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

Click Source Link

Document

Constant for the default variable prefix.

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);
    }/*  w  w  w. j  av  a2 s.c  o m*/
    return substitutor.replace(input);
}