Class: Factory

.auth. Factory


new Factory()

Factory class responsible for building actions and selectors.
Custom actions and selectors may be registered with this class.

Source:

Methods


createAction()

Creates a new action based on the type and settings.

Source:
Returns:

An action or null if no provider is registered for the given type.

Type
spet.auth.IAction | null

createSelector()

Creates a new selector based on the type and settings.

Source:
Returns:

A selector or null if no provider is registered for the given type.

Type
spet.auth.ISelector | null

getInstance()

Retrieves the singleton instance which is used by the library.

Source:
Returns:

The singleton instance.

Type
spet.auth.Factory

registerActionProvider()

Registers a new provider (factory method) for a action type.

Source:

registerSelectorProvider()

Registers a new provider (factory method) for a selector type.

Source: