corda / net.corda.core.cordapp / CordappProvider

CordappProvider

@DoNotImplement interface CordappProvider

Provides access to what the node knows about loaded applications.

Functions

getAppContext

abstract fun getAppContext(): CordappContext

Exposes the current CorDapp context which will contain information and configuration of the CorDapp that is currently running.

getContractAttachmentID

abstract fun getContractAttachmentID(contractClassName: ContractClassName): AttachmentId?

Resolve an attachment ID for a given contract name

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.