Show:

Constructs a ProAct.Registry.ProObjectProvider. The ProAct.Registry uses registered function providers as storage for objects with reactive ProAct.Property instances.

Constructor

ProAct.Registry.ProObjectProvider

() 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

Reads a stored instance.

Parameters:

Returns:

Object:

The stored object corresponding to the passed key 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.ProObjectProvider final

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

Reference to the constructor of this object.