|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.tatool.app.util.AppUtils
public class AppUtils
Utility methods for the application
| Constructor Summary | |
|---|---|
AppUtils()
|
|
| Method Summary | |
|---|---|
static Object |
createInstance(String className,
Class<?> targetClass,
boolean failWithError)
Instantiates a bean given the bean class. |
static String |
getStartupProperty(String key,
String defaultValue)
Get a startup property |
static void |
setStartupProperty(String key,
String value)
Set a startup property value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppUtils()
| Method Detail |
|---|
public static void setStartupProperty(String key,
String value)
key - the key to setvalue - the value to set, null to remove the key
public static String getStartupProperty(String key,
String defaultValue)
public static Object createInstance(String className,
Class<?> targetClass,
boolean failWithError)
className - the name of the class to instantiatefailWithError - whether an error should be thrown if the instantiation fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||