FunctionInstanceProvider<T> class
A FunctionInstanceProvider is able to create instances of type T by calling specific methods annotated with 'create'.
- Inheritance
-
- Object
- AbstractInstanceProvider<
T> - InstanceProvider<
T> - FunctionInstanceProvider
Constructors
- FunctionInstanceProvider(Type clazz, MethodDescriptor method, {bool eager = true, bool replace = false, String scope = "singleton"})
Properties
- eager → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → Type
-
no setterinherited
-
lifecycleMethods
↔ List<
List< MethodCall> ?> -
getter/setter pairinherited
- location → String
-
no setterinherited
- method → MethodDescriptor
-
final
- replace → bool
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → String
-
no setterinherited
- type → Type
-
no setterinherited
Methods
-
create(
Environment environment, [List args = const []]) → T -
override
-
getDependencies(
Environment environment) → (List< ParameterResolver> , Set<Type> , int) -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
report(
) → String -
override
-
resolve(
ResolveContext context) → void -
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited