Package org.apache.shiro.config
Class CommonsInterpolator
- java.lang.Object
-
- org.apache.shiro.config.CommonsInterpolator
-
- All Implemented Interfaces:
Interpolator
public class CommonsInterpolator extends Object implements Interpolator
Commons-Config interpolation wrapper. This implementation uses aConfigurationInterpolator
with the default lookup:sys
(system properties),env
(environment variables>, andconst
(constants).lookup example value sys ${sys:os.name} mac os x env ${env:EDITOR} vi const ${const:java.awt.event.KeyEvent.VK_ENTER} \n - Since:
- 1.4
- See Also:
ConfigurationInterpolator
-
-
Constructor Summary
Constructors Constructor Description CommonsInterpolator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.configuration2.interpol.ConfigurationInterpolator
getConfigurationInterpolator()
String
interpolate(String value)
Interpolatesvalue
and returns the result.
-
-
-
Constructor Detail
-
CommonsInterpolator
public CommonsInterpolator()
-
-
Method Detail
-
interpolate
public String interpolate(String value)
Description copied from interface:Interpolator
Interpolatesvalue
and returns the result.- Specified by:
interpolate
in interfaceInterpolator
- Parameters:
value
- the source text- Returns:
- the String result of the interpolation, or
value
, if there was not change.
-
getConfigurationInterpolator
public org.apache.commons.configuration2.interpol.ConfigurationInterpolator getConfigurationInterpolator()
-
-