FixedValueSource
public class PrefixedPropertiesValueSource extends AbstractDelegatingValueSource
This is just a convenience implementation to provide a shorthand for constructing the properties value source and then wrapping it with a prefixed value-source wrapper.
Constructor | Description |
---|---|
PrefixedPropertiesValueSource(java.lang.String prefix,
java.util.Properties properties) |
Wrap the specified properties file with a new
PropertiesBasedValueSource , then
wrap that source with a new PrefixedValueSourceWrapper that uses the specified
expression prefix. |
PrefixedPropertiesValueSource(java.util.List<java.lang.String> possiblePrefixes,
java.util.Properties properties,
boolean allowUnprefixedExpressions) |
Wrap the specified properties file with a new
PropertiesBasedValueSource , then
wrap that source with a new PrefixedValueSourceWrapper that uses the specified
expression-prefix list. |
getDelegate, getValue
public PrefixedPropertiesValueSource(java.lang.String prefix, java.util.Properties properties)
PropertiesBasedValueSource
, then
wrap that source with a new PrefixedValueSourceWrapper
that uses the specified
expression prefix. Finally, set this wrapper source as a delegate for this
instance to use.prefix
- The expression prefix to trimproperties
- The properties instance to wrappublic PrefixedPropertiesValueSource(java.util.List<java.lang.String> possiblePrefixes, java.util.Properties properties, boolean allowUnprefixedExpressions)
PropertiesBasedValueSource
, then
wrap that source with a new PrefixedValueSourceWrapper
that uses the specified
expression-prefix list. Finally, set this wrapper source as a delegate for this
instance to use.possiblePrefixes
- The expression-prefix list to trimproperties
- The properties instance to wrapallowUnprefixedExpressions
- allow unprefixed expressions or not.Copyright © 2018. All rights reserved.