File ObjectFactory.lua
Functions
ObjectFactory:frameworkModule (spec) | Load a framework module. |
ObjectFactory:new (t) | Constructor for new instance. |
ObjectFactory:newClass (t) | Constructor for extending class. |
ObjectFactory:newObject (class, ...) | "Manufacture" a new instance object of specified class. |
Functions
- ObjectFactory:frameworkModule (spec)
-
Load a framework module.
Parameters:
-
spec
:
Usage:
Called by init-framework method - extended object factory can return nil for unsupported classes,
or load a custom framework module for some class. -
- ObjectFactory:new (t)
-
Constructor for new instance.
Parameters:
-
t
:
-
- ObjectFactory:newClass (t)
-
Constructor for extending class.
Parameters:
-
t
:
-
- ObjectFactory:newObject (class, ...)
-
"Manufacture" a new instance object of specified class.
Parameters:
-
class
: (string or class, required) partial class name if unique, otherwise full-class-name, or class table proper. -
...
: passed to object constructor.
-