FactoryResolver

An IdentifierResolver that resolves elements generated by a factory.

Constructors

Link copied to clipboard
constructor(makerIdentifier: Identifier<InjectableFactory<T>>)

Properties

Link copied to clipboard
open override val requirements: List<Identifier<*>>

The requirements for this resolver, i.e. the identifiers that this resolver needs from the components argument of resolve. This information is used for dependency analysis to properly "link" components that are resolved against during resolution, such as with aliases.

Functions

Link copied to clipboard
open override fun resolve(requester: Any?, components: EnvironmentComponents): T

Resolve using the given components. The components may be used in case the resolver requires more complicated use cases.