corda / net.corda.core.cordapp / Cordapp

Cordapp

@DoNotImplement interface Cordapp

Represents a cordapp by registering the JAR that contains it and all important classes for Corda. Instances of this class are generated automatically at startup of a node and can get retrieved from CordappProvider.getAppContext from the CordappContext it returns.

This will only need to be constructed manually for certain kinds of tests.

Types

Info

interface Info

CorDapp's information, including vendor and version.

Properties

allFlows

abstract val allFlows: List<Class<out FlowLogic<*>>>

List of all flow classes

contractClassNames

abstract val contractClassNames: List<String>

List of contracts

cordappClasses

abstract val cordappClasses: List<String>

customSchemas

abstract val customSchemas: Set<MappedSchema>

List of custom schemas

info

abstract val info: Info

initiatedFlows

abstract val initiatedFlows: List<Class<out FlowLogic<*>>>

List of initiatable flow classes

jarHash

abstract val jarHash: SHA256

Hash of the jar

jarPath

abstract val jarPath: URL

The path to the JAR for this CorDapp

name

abstract val name: String

Cordapp name - derived from the base name of the Cordapp JAR (therefore may not be unique)

rpcFlows

abstract val rpcFlows: List<Class<out FlowLogic<*>>>

List of RPC initiable flows classes

schedulableFlows

abstract val schedulableFlows: List<Class<out FlowLogic<*>>>

List of flows startable by the scheduler

serializationCustomSerializers

abstract val serializationCustomSerializers: List<SerializationCustomSerializer<*, *>>

List of serializers

serializationWhitelists

abstract val serializationWhitelists: List<SerializationWhitelist>

List of Corda plugin registries

serviceFlows

abstract val serviceFlows: List<Class<out FlowLogic<*>>>

List of net.corda.core.node.services.CordaService initiable flows classes

services

abstract val services: List<Class<out SerializeAsToken>>

List of RPC services

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

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