Show:

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

Item Index

Properties

Methods

delete

(
  • key
)
Object

Deletes a stored instance.

Parameters:

  • key String

    The key to delete.

Returns:

Object:

The stored object corresponding to the passed key or undefined if there is no such object.

get

(
  • key
)
Object

Inherited from ProAct.Registry.Provider but overwritten in src/js/dsl/provider.js:448

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:

Returns:

Object:

The stored object corresponding to the passed key or predefined lambda or undefined if there is no such object.

make

(
  • key
  • options
  • [...]
)
Object

Creates and stores an instance of the object this ProAct.Registry.Provider manages.

For the creation is used the provide method.

Parameters:

  • key String

    The key on which the new instance will be stored.

  • options Array

    Array containing options for the creation process. For example the exact sub-type of the object to create (optional).

  • [...] Object optional

    Parameters passed to the constructor when the new instance is created.

Returns:

Object:

The newly created and stored object.

provide

(
  • options
  • [...]
)
Object

Provides a new instance of the managed by this ProAct.Registry.Provider object.

Parameters:

  • options Array

    An array containing the key of the object to create and store. It may contain data to pass to the constructor of the object.

  • [...] Object optional

    Arguments that should be passed to the constructor.

Returns:

Object:

An isntance of the managed class of objects.

registered

(
  • registery
)
protected

A callback called by the ProAct.Registry when this ProAct.Registry.Provider is registered.

Parameters:

  • registery ProAct.Registry

    The registry in which this is being registered.

store

(
  • key
  • object
)
Object

Stores an instance of an object this ProAct.Registry.Provider manages.

Parameters:

  • key String

    The key on which the object will be stored.

  • object Object

    The object to store.

Returns:

Object:

The stored object.

Properties

constructor

ProAct.Registry.FunctionProvider final

Inherited from ProAct.Registry.Provider but overwritten in src/js/dsl/provider.js:431

Reference to the constructor of this object.