@absolunet/ioc2.1.0

View on GitHub

NullDriverProxy

Null driver proxy that is infinitely chaineable. It is a great solution to test something that needs a complex instance or a suite of nested dependencies.

Methods

construct()

Source:
Handle construct call.
Returns:
A null driver proxy instance.
Type
support.drivers.NullDriverProxy

get(object, property)

Source:
Handle property access.
Parameters:
Name Type Description
object object The generic class instance.
property string | symbol | number The property name.
Returns:
A generator for iterator property, null for symbol property, null driver proxy instance for anything else.
Type
GeneratorFunction | null | support.drivers.NullDriverProxy

apply()

Source:
Handle function call on null driver.
Returns:
A null driver proxy instance.
Type
support.drivers.NullDriverProxy

makeProxy()

Source:
Make new null proxy.
Returns:
A null driver proxy instance.
Type
support.drivers.NullDriverProxy