TrueUpdate Utilities 0.4

net.java.trueupdate.util
Class SystemProperties

java.lang.Object
  extended by net.java.trueupdate.util.SystemProperties

@Immutable
public final class SystemProperties
extends Object

Replaces references to system properties of the form ${key} with their values.

Author:
Christian Schlichtherle

Method Summary
static String resolve(String string)
          Replaces references to system properties of the form ${key} with their values.
static String resolve(String string, String defaultValue)
          Replaces references to system properties of the form ${key} with their values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

resolve

public static String resolve(String string)
Replaces references to system properties of the form ${key} with their values.

Parameters:
string - the string to process.
Returns:
the resulting string

resolve

@Nullable
public static String resolve(@CheckForNull
                                      String string,
                                      @Nullable
                                      String defaultValue)
Replaces references to system properties of the form ${key} with their values.

Parameters:
string - the nullable string to process.
defaultValue - the nullable default value to return if and only if string is null. Note that this parameter does not get processed.
Returns:
the resulting string

TrueUpdate Utilities 0.4

Copyright © 2013 Schlichtherle IT Services. All rights reserved.