|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--apputil.AppConfig
The AppConfig class provides a single point of obtaining application configuration information. The data is stored in a Properties file, whose name is specified in the constructor. The data is stored in a class member, so once it has been instantiated for the application, it can be accessed by other methods without having to know the location of the configuration properties file.
Field Summary | |
static java.lang.String |
AGENTEMAIL
|
protected static java.util.Properties |
applicationProperties
|
static java.lang.String |
JDBCDRIVER
|
static java.lang.String |
JDBCPASS
|
static java.lang.String |
JDBCURL
|
static java.lang.String |
JDBCUSER
|
static java.lang.String |
SERVICENAME
|
static java.lang.String |
SMTPHOST
|
Constructor Summary | |
AppConfig()
default constructor provided for test harness |
|
AppConfig(java.lang.String configfilename)
Constructor, populuates the application properties from the configuration file identified in the parameter. |
Method Summary | |
java.lang.String |
getBugServerServiceName()
Gets the registration name for the DefectServer orb service as it is/will be registered with the ORB Naming Service. |
java.lang.String |
getBugTrackerAgentEmail()
Get the email address for the bug tracker agent. |
java.lang.String |
getDatasourceDriver()
Get the name of the JDBC database driver for the application. |
java.lang.String |
getDatasourcePass()
Get the username's for the data source |
java.lang.String |
getDatasourceURL()
Get the name of the datasource for the application. |
java.lang.String |
getDatasourceUser()
Get the username for the data source |
java.lang.String |
getSMTPHost()
Gets the host name of the SMTP server |
boolean |
TestUnit()
Supports test harness for unit testing |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static java.util.Properties applicationProperties
public static final java.lang.String JDBCDRIVER
public static final java.lang.String JDBCURL
public static final java.lang.String JDBCUSER
public static final java.lang.String JDBCPASS
public static final java.lang.String SERVICENAME
public static final java.lang.String SMTPHOST
public static final java.lang.String AGENTEMAIL
Constructor Detail |
public AppConfig(java.lang.String configfilename) throws java.io.IOException
configilename
- specifies the file that contains the application propertiespublic AppConfig()
Method Detail |
public java.lang.String getBugTrackerAgentEmail()
public java.lang.String getDatasourceDriver()
public java.lang.String getDatasourceURL()
public java.lang.String getDatasourceUser()
public java.lang.String getDatasourcePass()
public java.lang.String getBugServerServiceName()
public java.lang.String getSMTPHost()
public boolean TestUnit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |