|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.astroshare.astroonline.core.Configuration
public class Configuration
Astro-Online Configuration.
The Astro-Online Configuration gets it's configuration data from two sources. The first source is the web.xml configuration file. The second source is the database. The web.xml must be read to accomplish access to the database. All application specific data is stored in the database and can be administered with the online web administrator tool or directly in the database.
| Constructor Summary | |
|---|---|
Configuration()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getConfigurationParameter(java.lang.String parameter)
Get configuration parameter. |
static java.util.HashMap<java.lang.String,java.lang.Object> |
getMap()
Convert configuration settings to hashmap. |
static boolean |
isConfigurationLoaded()
Check if configuration is loaded. |
static void |
loadConfiguration(boolean refresh)
Loads Astro-Online Configuration. |
static boolean |
readConfigFile()
This method reads the web.xml file which holds the database configuration parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Configuration()
| Method Detail |
|---|
public static void loadConfiguration(boolean refresh)
Loads Astro-Online Configuration. First the configuration is read from the web.xml file. Next the application specific data is retrieved from the database. All configuration information is stored in the Configuration class for fast access.
refresh - TRUE means refresh configuration when it was already loaded.
Otherwise load configuration. FALSE means, if the
configuration was already loaded, do not reload.readConfigFile()public static boolean readConfigFile()
This method reads the web.xml file which holds the database configuration parameters.
loadConfiguration(boolean)public static boolean isConfigurationLoaded()
Check if configuration is loaded.
public static java.lang.String getConfigurationParameter(java.lang.String parameter)
Get configuration parameter.
public static java.util.HashMap<java.lang.String,java.lang.Object> getMap()
Convert configuration settings to hashmap.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Astro-Online © 2001 − 2008 Astro Share
Documentation generated on: Thursday August 12th 2008 (PS)