|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.app.AppEnv
public class AppEnv
Generic application environment class.
This class specifies that an application is devided into two sections:
Services are POJO's that define interfaces for business services. DAO's persist the data generated by Services and retrieve the data that is used by the Services.
This class provides access to service configuration and also provides access to the DAO's for interacting with the database.
Method Summary | |
---|---|
void |
destroy()
Destroy this environment. |
DaoManager |
getDaoManager()
Returns the DaoManager for this environment. |
static AppEnv |
getInstance(java.util.Properties p)
Initialise the AppEnv from the XML configuration specified by the given properties instance. |
java.lang.String |
getName()
Return the name of this environment. |
XMLProperties |
getServiceConfig(java.lang.String serviceName)
Return the named service configuration. |
XMLProperties |
getXMLProperties()
Returns the XML configuration for this environment. |
protected void |
setName(java.lang.String name)
Set the name of this environment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AppEnv getInstance(java.util.Properties p) throws ConfException, DaoException
ConfException
DaoException
public java.lang.String getName()
protected void setName(java.lang.String name)
name
- String containing the name of this environment.public XMLProperties getServiceConfig(java.lang.String serviceName)
serviceName
- Service name.
public DaoManager getDaoManager()
public XMLProperties getXMLProperties()
public void destroy() throws AppException
AppException.
AppException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |