ProAct.Registry.FunctionProvider Class
Constructs a ProAct.Registry.FunctionProvider
.
The ProAct.Registry uses registered function providers as storage for Functions.
The function provider doesn't have implementation for creation of new functions, only for storing, readin and removing them.
Constructor
ProAct.Registry.FunctionProvider
()
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.
If stored instance is not found and the key is in the form: actions(arg) - it is searched in the predefined lambdas, for example:
map(+)
Parameters:
-
key
StringThe key to read.
Returns:
The stored object corresponding to the passed key or predefined lambda 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.