Constructor Summary
Public Constructor | ||
public |
Builds a new Jsimple instance
|
Member Summary
Protected Members | ||
protected |
|
|
protected |
|
|
protected |
|
|
protected |
|
Method Summary
Public Methods | ||
public |
Sets a parameter or an object factory
|
|
public |
|
|
public |
extend(name: String, code: Function(service: *, container: Jsimple): *, tags: Array<String>): Jsimple |
|
public |
|
|
public |
|
|
public |
this method was deprecated. Use {@link Jsimple#tagged} instead
|
|
public |
this method was deprecated.
|
|
public |
protect(code: Function(): *): Function(): * |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
use(deps: Array<String> | Function(deps: *, container: Jsimple): *, code: Function(deps: *, container: Jsimple): *): * |
Public Constructors
Protected Members
Public Methods
public define(name: String, value: * | Function(container: Jsimple): *, tags: Array<String>): Jsimple source
Sets a parameter or an object factory
Test:
public exists(name: String): Boolean source
Params:
Name | Type | Attribute | Description |
name | String | The unique identifier for the parameter, service or factory |
public extend(name: String, code: Function(service: *, container: Jsimple): *, tags: Array<String>): Jsimple source
Test:
public factory(name: String, code: Function(container: Jsimple): *, tags: Array<String>): Jsimple source
public get(name: String): * source
Params:
Name | Type | Attribute | Description |
name | String | The unique identifier for the parameter, service or factory to fetch |
Return:
* | Result of executing the factory function |
public getTagged(tag: String): Array source
Params:
Name | Type | Attribute | Description |
tag | String | The tag name for which to fetch parameters, services or factories |
See:
public protect(code: Function(): *): Function(): * source
Params:
Name | Type | Attribute | Description |
code | Function(): * | Function to be protected from becoming a factory |
Return:
Function(): * | Function wrapping the provided function as code |
Test:
public raw(name: String): Function(container: Jsimple): * source
Params:
Name | Type | Attribute | Description |
name | String | The unique identifier for the factory to fetch |
Return:
Function(container: Jsimple): * | The declared factory function |