DependencyContainerInterface class abstract
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
registeredTypes
→ List<
Type> -
Return all registered types
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy(
) → void -
get<
T> () → T -
Get a dependency by passing its type as
T
-
getFromToken<
T> () → T - Get a dependency which was passed inside a injection token
-
has<
T> () → bool - Check if a specific dependency is registered
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register<
T> (T service) → void -
Register a
service
-
registerInterface<
TB, T extends TB> (T service) → void -
Register a
service
for a specific interface -
registerInterfaceWithDependencies<
TB, T extends TB> (ServiceFactory< T> serviceFactory, List<Type> dependencies) → void -
Register a
serviceFactory
withdependencies
for a specific type. -
registerWithDependencies<
T> (ServiceFactory< T> serviceFactory, List<Type> dependencies) → void -
Register a
serviceFactory
withdependencies
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister<
T> () → void - Unregister a service type
-
wire(
) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited