|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServerProperties
Interface used to retrieve the configuration of the Server.
| Method Summary | |
|---|---|
Properties |
getConfigFileEnv()
Returns JOnAS environment as configured with files properties only. |
String |
getDomainName()
Retrieve the Domain Name. |
String |
getPropFileName()
Retrieve the configuration file name. |
String |
getServerName()
Retrieve the Server Name. |
String |
getValue(String key)
Get value of a property. |
String |
getValue(String key,
String defaultVal)
Returns the value of the related property. |
String[] |
getValueAsArray(String key)
Returns the value of the related property as String []. |
boolean |
getValueAsBoolean(String key,
boolean def)
Returns the value of the related property as boolean. |
String |
getVersionsFile()
|
String |
getWorkDirectory()
|
boolean |
isDevelopment()
Needed to determine if the current server is in development mode. |
boolean |
isMaster()
Needed to determine if the current server is a master. |
| Method Detail |
|---|
String getValue(String key)
key - property name
String getValue(String key,
String defaultVal)
key - the search keydefaultVal - if the key is not found return this default value
boolean getValueAsBoolean(String key,
boolean def)
key - the wanted keydef - default run if not found
String[] getValueAsArray(String key)
key - the wanted key
String getDomainName()
String getServerName()
String getPropFileName()
Properties getConfigFileEnv()
String getVersionsFile()
boolean isMaster()
boolean isDevelopment()
String getWorkDirectory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||