ProAct.Registry.StreamProvider Class
Constructs a ProAct.Registry.StreamProvider
. The ProAct.Registry uses registered stream providers as storage for ProAct.Streams.
Constructor
ProAct.Registry.StreamProvider
()
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
-
registry
A callback called by the ProAct.Registry
when this ProAct.Registry.StreamProvider
is registered.
It adds the methods s and stream to the ProAct.Registry, which are aliases of this' ProAct.Registry.StreamProvider/get:method method.
Parameters:
-
registry
ProAct.RegistryThe registry in which this is being registered.
registered
-
registery
A callback called by the ProAct.Registry
when this ProAct.Registry.ProObjectProvider
is registered.
It adds the methods po and proObject to the ProAct.Registry, which are aliases of this' ProAct.Registry.ProObjectProvider/get:method method.
It adds the method prob to the ProAct.Registry, which is alias of this' ProAct.Registry.ProObjectProvider/make:method method.
Parameters:
-
registery
ProAct.RegistryThe registry in which this is being registered.