ServiceDescriptor<T> class
Describe a service
- Implementers
Constructors
-
ServiceDescriptor.scoped(ServiceFactory<
T> factory) - Scoped descriptor
-
ServiceDescriptor.singleton(ServiceFactory<
T> factory) - Singleton descriptor
- ServiceDescriptor.singletonFrom(T instance)
- Singleton descriptor
-
ServiceDescriptor.transient(ServiceFactory<
T> factory) - Transient descriptor
Properties
-
factory
↔ ServiceFactory<
T> -
The factory method of the service
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- lifeTime → ServiceLifeTime
-
The life-time of the service
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceType → Type
-
The type of the service
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited