ScopedSupplierDeclaration

class ScopedSupplierDeclaration<T : Any>(identifier: Identifier<T>, val supplier: ScopedSupplier<T>) : Declaration<T>

A declaration within an EnvironmentContext.

A declaration is an Identifier coupled with a scoped supplier. Declarations can be eagerly or lazily invoked depending on the underlying environment's general contract.

Constructors

Link copied to clipboard
fun <T : Any> ScopedSupplierDeclaration(identifier: Identifier<T>, supplier: ScopedSupplier<T>)

Properties

Link copied to clipboard
val identifier: Identifier<T>

The identifier for this declaration.

Link copied to clipboard
val supplier: ScopedSupplier<T>

The supplier for this declaration.

Link copied to clipboard
val tags: MutableList<DeclarationTag>

Tags attached to this declaration.