java.lang.Object
org.acs.damsel.srvr.Damsel
- public class Damsel
- extends java.lang.Object
Title: Damsel
Description: Damsel is a singleton class (i.e., only one copy of it
exists at a time) that mediates between the application and services layers.
- Version:
- 1.0
|
Constructor Summary |
private |
Damsel()
|
|
Method Summary |
org.acs.damsel.srvr.db.AssetDB |
getAssetDB()
getAssetDB() returns a handle on the AssetDB using that class's instance()
method because AssetDB is a singleton. |
static Damsel |
instance()
The instance() method is used instead of a constructor to get a handle on
the Damsel object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
private static Damsel instance
log
private org.apache.log4j.Logger log
Damsel
private Damsel()
instance
public static Damsel instance()
- The instance() method is used instead of a constructor to get a handle on
the Damsel object. If the Damsel instance is null, then it is initialized
using the default constructor.
getAssetDB
public org.acs.damsel.srvr.db.AssetDB getAssetDB()
- getAssetDB() returns a handle on the AssetDB using that class's instance()
method because AssetDB is a singleton.