@DoNotImplement public 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 class CordappContext
it returns.
This will only need to be constructed manually for certain kinds of tests.
@NotNull java.lang.String getName()
Cordapp name - derived from the base name of the Cordapp JAR (therefore may not be unique). This is different to
Cordapp.Info.shortName
which should be used instead.
Cordapp.Info.shortName
@NotNull java.util.List<java.lang.String> getContractClassNames()
List of contracts
@NotNull java.util.List<java.lang.Class> getInitiatedFlows()
List of initiatable flow classes
@NotNull java.util.List<java.lang.Class> getRpcFlows()
List of RPC initiable flows classes
@NotNull java.util.List<java.lang.Class> getServiceFlows()
List of annotationclass CordaService
initiable flows classes
annotationclass CordaService
@NotNull java.util.List<java.lang.Class> getSchedulableFlows()
List of flows startable by the scheduler
@NotNull java.util.List<java.lang.Class> getServices()
List of RPC services
@NotNull java.util.List<net.corda.core.serialization.SerializationWhitelist> getSerializationWhitelists()
List of Corda plugin registries
@NotNull java.util.List<net.corda.core.serialization.SerializationCustomSerializer> getSerializationCustomSerializers()
List of serializers
@NotNull java.util.List<net.corda.core.serialization.CheckpointCustomSerializer> getCheckpointCustomSerializers()
List of serializers for checkpoints
@NotNull java.util.Set<net.corda.core.schemas.MappedSchema> getCustomSchemas()
List of custom schemas
@NotNull java.util.List<java.lang.Class> getAllFlows()
List of all flow classes
@NotNull java.net.URL getJarPath()
The path to the JAR for this CorDapp
@NotNull java.util.List<java.lang.String> getCordappClasses()
An exhaustive list of all classes relevant to the node within this CorDapp
@NotNull net.corda.core.cordapp.Cordapp.Info getInfo()
@NotNull net.corda.core.crypto.SecureHash.SHA256 getJarHash()
Hash of the jar
int getMinimumPlatformVersion()
The minimum platform version this CorDapp will run on.
int getTargetPlatformVersion()
The target platform version this CorDapp was designed and tested on.