ProAct.Registry.Provider Class
src/js/dsl/provider.js:29
Constructs a ProAct.Registry.Provider
.
The ProAct.Registry uses registered providers as storage for different objects.
Every provider has one or more namespaces in the ProAct.Registry it is registered to.
Every provider knows how to store its type of obects, how to make them, or delete them.
Constructor
ProAct.Registry.Provider
()
static
Methods
delete
-
key
Deletes a stored instance.
Parameters:
-
key
StringThe key to delete.
Returns:
The stored object corresponding to the passed key or undefined if there is no such object.
get
-
key
Reads a stored instance.
Parameters:
-
key
StringThe key to read.
Returns:
The stored object corresponding to the passed key or undefined if there is no such object.
make
-
key
-
options
-
[...]
Creates and stores an instance of the object this ProAct.Registry.Provider
manages.
For the creation is used the provide method.
Parameters:
Returns:
The newly created and stored object.
provide
-
options
-
[...]
Provides a new instance of the managed by this ProAct.Registry.Provider
object.
Parameters:
Returns:
An isntance of the managed class of objects.
registered
-
registery
A callback called by the ProAct.Registry when this ProAct.Registry.Provider
is registered.
Parameters:
-
registery
ProAct.RegistryThe registry in which this is being registered.