API Docs for: 0.1.0
Show:

AbstractFactory Class

Defined in: lib/main.js:4

Abstract Factory

Constructor

AbstractFactory

(
  • factories
)

Defined in lib/main.js:4

Parameters:

  • factories Object

    Hash of factories to store in the registry.

Item Index

Methods

Methods

(
  • [type=Default]
  • [initOpts]
)
Class

Defined in lib/main.js:25

Get a factory from the registry.

Parameters:

  • [type=Default] String optional

    Name of factory you want to return; defaults to Default factory.

  • [initOpts] Object optional

    Params to pass to the factory if being instantiated with new, eg new Factory (initOps).

Returns:

Class: The factory requested from the registry.