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

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

Introduction

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

Prototype

public StrSubstitutor setVariableSuffix(final String suffix) 

Source Link

Document

Sets the variable suffix to use.

Usage

From source file:io.fabric8.karaf.core.Support.java

public static StrSubstitutor createStrSubstitutor(String prefix, String suffix, StrLookup<String> lookup) {
    StrSubstitutor substitutor = new StrSubstitutor();
    substitutor.setEnableSubstitutionInVariables(true);
    substitutor.setVariablePrefix(prefix);
    substitutor.setVariableSuffix(suffix);
    substitutor.setVariableResolver(lookup);

    return substitutor;
}