Package org.apache.shiro.config.ogdl
Class CommonsInterpolator
java.lang.Object
org.apache.shiro.config.ogdl.CommonsInterpolator
- All Implemented Interfaces:
Interpolator
Commons-Config interpolation wrapper. This implementation uses a
ConfigurationInterpolator with the default
lookup: sys (system properties), env (environment variables>, and const (constants).
| lookup | example | value |
|---|---|---|
| sys | ${os.name} | mac os x |
| env | ${EDITOR} (resolved from environment variables) | vi |
| const | ${const:java.awt.event.KeyEvent.VK_ENTER} | \n |
- Since:
- 1.4
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.configuration2.interpol.ConfigurationInterpolatorinterpolate(String value) Interpolatesvalueand returns the result.
-
Constructor Details
-
CommonsInterpolator
public CommonsInterpolator()
-
-
Method Details
-
interpolate
Description copied from interface:InterpolatorInterpolatesvalueand returns the result.- Specified by:
interpolatein 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()
-