ServiceDescriptorImpl class

Inheritance
Available extensions

Constructors

ServiceDescriptorImpl({required Type bindingType, required Type serviceType, required bool optional, required List<Condition> conditions, required List<InjectorKey> dependencies, required List<InjectorKey> optionalDependencies, required List<InjectorKey> publications, required FutureOr instantiateFunc(Injector), required FutureOr<void> startFunc(DarwinSystem, dynamic), required FutureOr<void> stopFunc(DarwinSystem, dynamic)})

Properties

bindingType Type
Type to which this service is going to get bound to.
getter/setter pairoverride-getter
conditions List<Condition>
Conditions required by this service.
getter/setter pairoverride-getter
dependencies List<InjectorKey>
Dependencies required by this service.
getter/setter pairoverride-getter
hashCode int
The hash code for this object.
no setterinherited
instantiateFunc FutureOr Function(Injector)
getter/setter pair
optional bool
Defines if this service is optional and can be skipped.
getter/setter pairoverride-getter
optionalDependencies List<InjectorKey>
Optional dependencies of this service.
getter/setter pairoverride-getter
publications List<InjectorKey>
All dependencies which could be published by this service.
getter/setter pairoverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceType Type
Actual type of the service that will be instantiated
getter/setter pairoverride-getter
startFunc FutureOr<void> Function(DarwinSystem, dynamic)
getter/setter pair
stopFunc FutureOr<void> Function(DarwinSystem, dynamic)
getter/setter pair

Methods

collectDependencies() Iterable<InjectorKey>

Available on ServiceDescriptor, provided by the ResolutionExtension extension

Collects all required dependencies of this service and its conditions.
collectOptionalDependencies() Iterable<InjectorKey>

Available on ServiceDescriptor, provided by the ResolutionExtension extension

Collects all optional dependencies of this service and its conditions.
instantiate(Injector injector) Future
isSatisfied(Injector injector) bool

Available on ServiceDescriptor, provided by the ResolutionExtension extension

Verifies if the injector provides all required dependencies.
isSolvable(Injector injector, List<InjectorKey> futurePromises) bool

Available on ServiceDescriptor, provided by the ResolutionExtension extension

Verifies if all required dependencies are either already provided by the injector or could still become available as promised by futurePromises.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
skipDependencyCycle(Injector injector, List<InjectorKey> futurePromises) bool

Available on ServiceDescriptor, provided by the ResolutionExtension extension

Returns if the DarwinSystemServiceMixin should wait another dependency cycle before trying to create this service, either because it is currently lacking required dependencies, or optional dependencies are still being possibly promised by futurePromises.
start(DarwinSystem system, dynamic obj) Future<void>
The start signal handler of this service.
override
stop(DarwinSystem system, dynamic obj) Future<void>
The stop signal handler of this service.
override
toString() String
A string representation of this object.
override

Operators

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