TaggedSingletonInjectFactory<T> class
abstract
InjectFactory that stores singleton map per each tag of a given type T
.
- Inheritance
-
- Object
- InjectFactory<
T> - InjectTagFactory<
T> - TaggedSingletonInjectFactory
- Mixed in types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
taggedSingletons
↔ Map<
String, T> -
Map of singleton instances of
T
per eachString
tag.getter/setter pair
Methods
-
close(
) → void -
Closes all instances of singleton if they implement Closable
Cleans up the singleton map.
override
-
create(
) → T -
Creates a instance of
T
override -
createForTag(
String? tag) → T -
Abstract method to create instance of
T
for a tag. -
createTagged(
String? tag) → T -
Method that checks if instance is already in singleton map
before creating new instance of
T
override -
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