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

Method Index

 o getDebugLog()
Returns a LogStream to be used as a debug log.
 o getErrorLog()
Returns a LogStream to be used as an error log.
 o getOutputLog()
Returns a LogStream to be used as an output log.
 o getProperties()
Returns a reference to the BeanSystem Properties object.
 o getProperty(String)
Returns the Property specified by the passed key.
 o getProperty(String, String)
Returns the Property specified by the passed key or the caller-supplied default value.
 o getWorkingDirectory()
Returns a directory on the host CLASSPATH that can be used as working storage by code generation and instantiation tools.
 o saveProperties()
Saves the BeanSystem Properties to the default location.
 o setProperties(Properties)
Sets the BeanSystem Properties object.

Methods

 o getProperties
 public static Properties getProperties()
Returns a reference to the BeanSystem Properties object.

Returns:
The BeanSystem Properties object.
 o saveProperties
 public static void saveProperties()
Saves the BeanSystem Properties to the default location.

Parameters:
props - The Properties object to be maintained.
 o setProperties
 public static void setProperties(Properties props)
Sets the BeanSystem Properties object.

Parameters:
props - The Properties object to be maintained.
 o 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.
 o 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.
 o 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.
 o getOutputLog
 public static LogStream getOutputLog()
Returns a LogStream to be used as an output log.

Returns:
An output log LogStream.
 o getErrorLog
 public static LogStream getErrorLog()
Returns a LogStream to be used as an error log.

Returns:
An error log LogStream.
 o 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