|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.quadrique.jbuildingblocks.core.application.parameters.JbbConfigurationParameters
public class JbbConfigurationParameters
This class is used to retrieve the application configuration. The configuration is stored in an xml file (e.g. "server.xml") and provide to the application its configuration parameters
| Constructor Summary | |
|---|---|
JbbConfigurationParameters()
Constructor |
|
| Method Summary | |
|---|---|
String |
get(String zTag)
Retrieve the value associated to the given tag |
String |
get(String zTag,
String zAttribute)
Retrieve the value associated to the given tag and attribute |
boolean |
getAsBool(String zTag,
String zAttribute)
Retrieve the value associated to the given tag and attribute |
int |
getAsInt(String zTag)
Retrieve the value associated to the given tag and convert it to an int |
Document |
getDocument()
|
static JbbConfigurationParameters |
getInstance()
This method returns an instance of the ConfigurationParameters class. |
void |
initialize(String zConfigFileName)
Open the config file (if any) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JbbConfigurationParameters()
| Method Detail |
|---|
public static final JbbConfigurationParameters getInstance()
public void initialize(String zConfigFileName)
throws Exception
zConfigFileName - the full config file name
Exception
public String get(String zTag)
throws Exception
Exception
public int getAsInt(String zTag)
throws Exception
Exception
public String get(String zTag,
String zAttribute)
throws Exception
Exception
public boolean getAsBool(String zTag,
String zAttribute)
throws Exception
Exceptionpublic Document getDocument()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||