|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jonas.common.JProp
This class manages reading of the resource properties used by the JOnAS Server. This class adopts the singleton design-pattern. No need to instanciate it, this is done by the private constructor called in the static reference. Contributors: - ../03/2003 Adriana Danes Manage unique instances for the resources properties file Change 'config' en 'conf' Change initial configuration policy : read properties file in a sole location : JONAS_BASE/CONFIG_DIR/ Change method name getFilesEnv() to getConfigFileEnv()
Field Summary | |
static java.lang.String |
JONASPREFIX
|
Method Summary | |
void |
env2Ctx(javax.naming.Context ctx)
Bind all the properties found in file properties in a naming context the naming context must be allocated by the caller |
java.util.Properties |
getConfigFileEnv()
Returns JOnAS environment as configured with files properties only. |
java.util.Properties |
getEnv()
Returns JOnAS environment as configured with configuration file properties content and system properties. |
static java.lang.String |
getInstallRoot()
Static method which return the JOnAS install root value. |
static JProp |
getInstance()
Get the unique instance. |
static JProp |
getInstance(java.lang.String fileName)
Get one of the multiple instances. |
static java.lang.String |
getJonasBase()
Static method which return the jonas.base proprty |
java.lang.String |
getPropFile()
Returns properties files name |
java.lang.String |
getValue(java.lang.String key)
Returns the value of the related property. |
java.lang.String |
getValue(java.lang.String key,
java.lang.String defaultVal)
Returns the value of the related property. |
java.lang.String[] |
getValueAsArray(java.lang.String key)
Returns the value of the related property as String []. |
boolean |
getValueAsBoolean(java.lang.String key,
boolean def)
Returns the value of the related property as boolean. |
static void |
main(java.lang.String[] args)
Displays the JOnAS properties values, as they are set by the different property files. |
java.lang.String |
toString()
String representation of the object for trace purpose |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String JONASPREFIX
Method Detail |
public static JProp getInstance() throws java.lang.Exception
public static JProp getInstance(java.lang.String fileName) throws java.lang.Exception
fileName
- the name of the configuration filepublic static java.lang.String getInstallRoot()
public static java.lang.String getJonasBase()
public java.lang.String getPropFile()
public java.util.Properties getEnv()
public java.util.Properties getConfigFileEnv()
public java.lang.String getValue(java.lang.String key, java.lang.String defaultVal)
public java.lang.String getValue(java.lang.String key)
public boolean getValueAsBoolean(java.lang.String key, boolean def)
public java.lang.String[] getValueAsArray(java.lang.String key)
public java.lang.String toString()
toString
in class java.lang.Object
public void env2Ctx(javax.naming.Context ctx) throws java.lang.Exception
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |