|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.appSupport.StartupRoutine
There are a set of things that happen in most application startups. I'm attempting to create a class that handles the most common items.
Constructor Summary | |
StartupRoutine()
|
Method Summary | |
static void |
initPersistence(java.lang.String[] args)
If an application is going to use persistence, you may want to initialize object pooling with this routine. |
static void |
loadDefaults(java.lang.Object obj)
|
static void |
loadDefaults(java.lang.Object obj,
java.lang.String fileName)
This will first look for the file as a system resource. |
static void |
logExceptionsToFile(java.lang.String fileName)
Setup a listener on the status manager to log any exceptions to the the file provided by file name. |
static void |
manageTransactionWithScreenActivation()
In order to effectively use this method, you must use the UIManager class to open ALL screens. |
static void |
setInitializationFile(java.lang.String iniFile)
This method should be called before the loadDefaults(Object) method is called. |
static void |
setLookAndFeel()
This will set the look and feel of the application to windows. |
static void |
useObjectPool(java.lang.String fileName)
|
static void |
writeObjectPoolOnExit(java.lang.String fileName)
This method will most likely be called from the initializePersistence method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StartupRoutine()
Method Detail |
public static void initPersistence(java.lang.String[] args)
public static void loadDefaults(java.lang.Object obj)
obj
- The object that will be used to look for the initialization file.
obj can either be an instance of something or a class.public static void loadDefaults(java.lang.Object obj, java.lang.String fileName)
obj
- The object that will be used to look for the initialization file.
obj can either be an instance of something or a class.fileName
- The file containing the properties.public static void logExceptionsToFile(java.lang.String fileName)
public static void manageTransactionWithScreenActivation()
public static void setInitializationFile(java.lang.String iniFile)
public static void setLookAndFeel()
public static void useObjectPool(java.lang.String fileName)
public static void writeObjectPoolOnExit(java.lang.String fileName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |