Class Interpolator
- java.lang.Object
-
- org.apache.felix.configadmin.plugin.interpolation.Interpolator
-
public class Interpolator extends Object
Replace place holders in a string
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Interpolator.Provider
The value for the replacement is returned by this provider
-
Constructor Summary
Constructors Constructor Description Interpolator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
parseDirectives(String value)
static Object
replace(String value, Interpolator.Provider provider)
Replace all place holders
-
-
-
Field Detail
-
END
public static final char END
- See Also:
- Constant Field Values
-
START
public static final String START
- See Also:
- Constant Field Values
-
ESCAPE
public static final char ESCAPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
replace
public static Object replace(String value, Interpolator.Provider provider)
Replace all place holders- Parameters:
value
- Value with place holdersprovider
- Provider for providing the values- Returns:
- Replaced object (or original value)
-
-