- defaultOptions :
decide
defaults to a function always returning true
- createFactory(ClassDefinition) ⇒
function
Creates a factory function that produces proxies to instances of a {class} definition, based on
defaults to a function always returning true
Creates a factory function that produces proxies to instances of a {class} definition, based on
Kind: global function
Returns: function
- A factory function to produce proxies to an instance
Param | Type | Description |
---|---|---|
ClassDefinition | ||
options.decide | function |
A function that checks the instance's given {key} and {value} of a property and returns true, if the property is public or false if private. |
options.revealIsProxy | boolean |
if true it allows external code to ask for {isProxy} which then returns true |
options.referenceClass | boolean |
if true it allows external code to ask for {class} which then returns the referenced original class definition but never the instance |
Creates an instance of the given ClassDefinition
Kind: inner method of createFactory
Param | Description |
---|---|
...invocationArgs | arguments of arbitrary length, determined by ClassDefinition |