| 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.core.util.PlaceholderReplacer
public class PlaceholderReplacer
| Nested Class Summary | |
|---|---|
static class | 
PlaceholderReplacer.PlaceholderResolutionException
 | 
| Constructor Summary | |
|---|---|
PlaceholderReplacer()
 | 
|
| Method Summary | |
|---|---|
static String | 
replacePlaceholders(Map<String,String> variables,
                    String value)
Replaces each occurence of ${SOME_VALUE} with the varible SOME_VALUE in 'variables' If any error occures during parsing, i.e: variable doesn't exist, bad syntax, etc...  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PlaceholderReplacer()
| Method Detail | 
|---|
public static String replacePlaceholders(Map<String,String> variables,
                                         String value)
                                  throws PlaceholderReplacer.PlaceholderResolutionException
PlaceholderReplacer.PlaceholderResolutionException is thrown, otherwise the new string after all replacements have been
 made will be returned.
variables - The variables map to match placeholders againstvalue - the string, possibly containing placeholders
PlaceholderReplacer.PlaceholderResolutionException - if an empty placeholder is found 
      or a place holder with no suitable value in 'variables'
  | 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||