Constructor
# new Adapter(native, flavour)
Abstract Decaf-ts Persistence Adapter Class
Offers the base implementation for all Adapter Classes
and manages them various registered Adapter
s
Parameters:
Name | Type | Description |
---|---|---|
native |
Y
|
the underlying persistence object |
flavour |
string
|
the under witch the persistence adapter should be stored |
- Implements:
Methods
# observe(observer) → {void}
Registers an Observer
Parameters:
Name | Type | Description |
---|---|---|
observer |
Observer
|
- Implements:
- See:
void
# unObserve(observer) → {void}
Unregisters an Observer
Parameters:
Name | Type | Description |
---|---|---|
observer |
Observer
|
- Implements:
- See:
void
# async updateObservers(argsopt) → {Promise.<void>}
calls all registered Observer
s to update themselves
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
Array.<any>
|
<optional> |
optional arguments to be passed to the |
Promise.<void>