|
|||||||||
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 properties used by EJB 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. This class provides as well a public constructor, to read other properties files.
Field Summary | |
static java.lang.String |
JONASPREFIX
|
Constructor Summary | |
JProp()
Public constructor to initialize and read JONAS properties files. |
|
JProp(java.lang.String fileName)
Public constructor to initialize and read properties files. |
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 |
getEnv()
Returns JOnAS environment as configured with files properties and system properties. |
java.util.Properties |
getFilesEnv()
Returns JOnAS environment as configured with files properties only. |
static java.lang.String |
getInstallRoot()
Static method which return the JOnAS install root value. |
java.lang.String |
getPropFile()
Returns properties file name. |
java.lang.String[] |
getPropFiles()
Returns properties files names |
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
Constructor Detail |
public JProp(java.lang.String fileName) throws java.lang.Exception
public JProp() throws java.lang.Exception
Method Detail |
public static java.lang.String getInstallRoot()
public java.lang.String getPropFile()
public java.lang.String[] getPropFiles()
public java.util.Properties getEnv()
public java.util.Properties getFilesEnv()
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 |