ZenithOverride<T> class
Pairs a ZenithKey with a factory override function for testing or scoping. Registering a ZenithOverride with a ZenithContainer causes ZenithContainer.getOrCreate to use factory instead of the factory passed at the call site whenever key is requested.
Constructors
-
ZenithOverride(ZenithKey<
T> key, T factory(ZenithRef ref)) -
Creates a ZenithOverride that replaces the factory for
key.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited