public class PropertyResolver extends Object
| Constructor and Description |
|---|
PropertyResolver() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableList<String> |
resolveList(List<String> list)
Parse List and resolve Strings value with resolveProps
|
static com.google.common.collect.ImmutableMap<String,Object> |
resolveMap(Map<String,Object> map)
Parse Map and resolve Strings value with resolveProps
|
static String |
resolveProps(String s)
Parse a String and replace vars a la ant (${key} from System Properties
Support complex Strings like :
"${myhost}" "${myhost:w2}" "${mybean:defbean}.${mybean2:defbean2}"
|
public static String resolveProps(@Nullable String s)
s - @CheckReturnValue public static com.google.common.collect.ImmutableMap<String,Object> resolveMap(@Nonnull Map<String,Object> map)
@CheckReturnValue public static com.google.common.collect.ImmutableList<String> resolveList(@Nonnull List<String> list)
Copyright © 2015. All Rights Reserved.