|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfki.lt.hog.Application
public abstract class Application
An abstract class providing some basic methods an objects for an application. Among these is a logger (Log4J) and methods to configure its logging outputs (level, file type, etc.). An application is configured by an external config file (usually application.cfg).
Field Summary | |
---|---|
static org.apache.log4j.Logger |
applicationLog
A logger for this Application |
static java.lang.String |
DATABASE_URI
Key for database location property in configuration properties |
static java.lang.String |
DATABASE_USER
Key for database user property in configuration properties |
Constructor Summary | |
---|---|
Application()
|
Method Summary | |
---|---|
protected java.util.Properties |
getConfig()
Returns the configuration of this Application . |
protected java.lang.String |
getDatabaseUri()
Returns the URI for the database |
protected java.lang.String |
getDatabaseUser()
Returns current user name for database. |
protected void |
init(java.util.Properties applProps)
Initializes field values with values from configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static org.apache.log4j.Logger applicationLog
Application
public static final java.lang.String DATABASE_URI
public static final java.lang.String DATABASE_USER
Constructor Detail |
---|
public Application()
Method Detail |
---|
protected void init(java.util.Properties applProps) throws java.io.IOException
applProps
-
java.io.IOException
protected java.util.Properties getConfig()
Application
.
Properties
protected java.lang.String getDatabaseUser()
protected java.lang.String getDatabaseUri()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |