com.compoze.ejb
Class RuntimeProperties
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--java.util.Properties
|
+--com.compoze.util.ObjectProperties
|
+--com.compoze.util.MutableProperties
|
+--com.compoze.util.ResourceProperties
|
+--com.compoze.ejb.RuntimeProperties
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- Direct Known Subclasses:
- EjbRuntimeProperties
- public class RuntimeProperties
- extends ResourceProperties
- implements java.io.Serializable
This class encapsulates access to the ejbruntime.properties file.
The current configuration of the runtime properties is first set by the system
properties ejbruntime.appserver, ejbruntime.database and
ejbruntime.config, then if those are not set the same keys in
ejbruntime.properties are used.
- See Also:
- Serialized Form
| Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
| Fields inherited from class java.util.Properties |
defaults |
|
Constructor Summary |
RuntimeProperties(java.lang.String sResourceName)
Constructor. |
RuntimeProperties(java.lang.String sResourceName,
java.util.Properties defaults)
Constructor. |
|
Method Summary |
java.lang.String |
getAppServerConfig()
Gets the application server configuration setting. |
java.util.LinkedList |
getConfiguration()
Gets the configurations that are set. |
java.lang.String |
getDatabaseConfig()
Gets the database configuration setting. |
java.lang.String |
getJNDIName(java.lang.Class homeInterfaceClass)
Gets a JNDI name given a bean's home interface (the value of a key whose
name is jndi.<home interface name>, for example
jndi.com.compoze.ebusiness.user.IUserHome=IUserHomeJNDI. |
| Methods inherited from class com.compoze.util.ObjectProperties |
getBoolean, getBoolean, getByte, getByte, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, getString, getString, getStringArray, getStringArray, getStringArray, replaceSubstitutions |
| Methods inherited from class java.util.Properties |
list, list, load, save, setProperty, store |
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
APPSERVER_CONFIG_KEY
public static final java.lang.String APPSERVER_CONFIG_KEY
- !!! These field summaries all need descriptions !!!
DATABASE_CONFIG_KEY
public static final java.lang.String DATABASE_CONFIG_KEY
APPSERVER_CHAIN_KEY
public static final java.lang.String APPSERVER_CHAIN_KEY
DATABASE_CHAIN_KEY
public static final java.lang.String DATABASE_CHAIN_KEY
RuntimeProperties
public RuntimeProperties(java.lang.String sResourceName)
- Constructor.
- Parameters:
sResourceName - the file from which the properties are readlPropsFileCheckInterval - a checking interval (in milliseconds) for the file
RuntimeProperties
public RuntimeProperties(java.lang.String sResourceName,
java.util.Properties defaults)
- Constructor.
- Parameters:
propsFile - the file from which the properties are readlPropsFileCheckInterval - a checking interval (in milliseconds) for the filedefaults - a list of defaults used when a property is not found
getJNDIName
public java.lang.String getJNDIName(java.lang.Class homeInterfaceClass)
- Gets a JNDI name given a bean's home interface (the value of a key whose
name is
jndi.<home interface name>, for example
jndi.com.compoze.ebusiness.user.IUserHome=IUserHomeJNDI.
- Parameters:
homeInterfaceClass - the home interface class- Returns:
- the JNDI name of the bean
getDatabaseConfig
public java.lang.String getDatabaseConfig()
- Gets the database configuration setting.
- Returns:
- the database configuration setting
getAppServerConfig
public java.lang.String getAppServerConfig()
- Gets the application server configuration setting.
- Returns:
- the application server configuration setting
getConfiguration
public java.util.LinkedList getConfiguration()
- Gets the configurations that are set.
- Returns:
- the list of configurations set
Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.