entryOf

inline fun <T : Any> entryOf(qualifier: Qualifier = EmptyQualifier, noinline supplier: ScopedSupplier<T>): Pair<Identifier<T>, ScopedSupplierDeclaration<T>>

Creates a Declaration, automatically creating the identifier from T and qualifier and using the given supplier. Returns a pair with the identifier and the declaration.


fun <T : Any> entryOf(declaration: Declaration<T>): Pair<Identifier<T>, Declaration<T>>

Creates an entry directly from a declaration instead of from a qualifier + supplier.