Registry<TConfig extends BaseConfig> class abstract

An injection registry.

Implementers

Constructors

Registry()

Properties

config → TConfig
Gets the TConfig used by the registry and its components.
no setter
hashCode int
The hash code for this object.
no setterinherited
injector → Injector
Gets the Injector behind this instance. This is useful for injecting mocks for testing
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets the Registry state, allowing it to be reconfigured.
setup(TConfig config) → void
Sets up the registry with access to a config.
toString() String
A string representation of this object.
inherited
useConfig(TConfig config) → void
Sets the available config for factories requiring configuration.
withConfig<T>(ConfigBuilder<T, TConfig> builder, {bool singleton = true}) → Factory<T>
Registers a singleton builder for an object that requires configuration values

Operators

operator ==(Object other) bool
The equality operator.
inherited