All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.beans.util.BeanSystem
java.lang.Object
|
+----com.ibm.beans.util.BeanSystem
- public final class BeanSystem
- extends Object
A class providing Beans helper methods.
- See Also:
- BeanSystemImpl
-
getDebugLog()
- Returns a LogStream to be used as a debug log.
-
getErrorLog()
- Returns a LogStream to be used as an error log.
-
getOutputLog()
- Returns a LogStream to be used as an output log.
-
getProperties()
- Returns a reference to the BeanSystem Properties object.
-
getProperty(String)
- Returns the Property specified by the passed key.
-
getProperty(String, String)
- Returns the Property specified by the passed key or
the caller-supplied default value.
-
getWorkingDirectory()
- Returns a directory on the host CLASSPATH that can be used
as working storage by code generation and instantiation tools.
-
saveProperties()
- Saves the BeanSystem Properties to the default location.
-
setProperties(Properties)
- Sets the BeanSystem Properties object.
getProperties
public static Properties getProperties()
- Returns a reference to the BeanSystem Properties object.
- Returns:
- The BeanSystem Properties object.
saveProperties
public static void saveProperties()
- Saves the BeanSystem Properties to the default location.
- Parameters:
- props - The Properties object to be maintained.
setProperties
public static void setProperties(Properties props)
- Sets the BeanSystem Properties object.
- Parameters:
- props - The Properties object to be maintained.
getProperty
public static String getProperty(String key)
- Returns the Property specified by the passed key.
- Parameters:
- key - The key designating the Property to be retrieved.
- Returns:
- The Property specified by key.
getProperty
public static String getProperty(String key,
String def)
- Returns the Property specified by the passed key or
the caller-supplied default value.
- Parameters:
- key - The key designating the Property to be retrieved.
- def - The default value to be returned if the Property
designated by key is not found.
- Returns:
- The Property specified by key, if found; else, the
default value specified by def.
getWorkingDirectory
public static File getWorkingDirectory() throws InvalidWorkingDirectoryException
- Returns a directory on the host CLASSPATH that can be used
as working storage by code generation and instantiation tools.
- Returns:
- The working directory on the host.
- Throws: InvalidWorkingDirectoryException
- This method throws an
InvalidWorkingDirectoryException if the working directory
cannot be found or is invalid.
getOutputLog
public static LogStream getOutputLog()
- Returns a LogStream to be used as an output log.
- Returns:
- An output log LogStream.
getErrorLog
public static LogStream getErrorLog()
- Returns a LogStream to be used as an error log.
- Returns:
- An error log LogStream.
getDebugLog
public static LogStream getDebugLog()
- Returns a LogStream to be used as a debug log.
- Returns:
- A debug log LogStream.
All Packages Class Hierarchy This Package Previous Next Index