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.
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Class> |
getAllFlows()
List of all flow classes
|
java.util.List<net.corda.core.serialization.CheckpointCustomSerializer> |
getCheckpointCustomSerializers()
List of serializers for checkpoints
|
java.util.List<java.lang.String> |
getContractClassNames()
List of contracts
|
java.util.List<java.lang.String> |
getCordappClasses()
An exhaustive list of all classes relevant to the node within this CorDapp
|
java.util.Set<net.corda.core.schemas.MappedSchema> |
getCustomSchemas()
List of custom schemas
|
Cordapp.Info |
getInfo() |
java.util.List<java.lang.Class> |
getInitiatedFlows()
List of initiatable flow classes
|
SecureHash.SHA256 |
getJarHash()
Hash of the jar
|
java.net.URL |
getJarPath()
The path to the JAR for this CorDapp
|
int |
getMinimumPlatformVersion()
The minimum platform version this CorDapp will run on.
|
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.getShortName which should be used instead. |
java.util.List<java.lang.Class> |
getRpcFlows()
List of RPC initiable flows classes
|
java.util.List<java.lang.Class> |
getSchedulableFlows()
List of flows startable by the scheduler
|
java.util.List<net.corda.core.serialization.SerializationCustomSerializer> |
getSerializationCustomSerializers()
List of serializers
|
java.util.List<net.corda.core.serialization.SerializationWhitelist> |
getSerializationWhitelists()
List of Corda plugin registries
|
java.util.List<java.lang.Class> |
getServiceFlows()
List of
interface CordaService initiable flows classes |
java.util.List<java.lang.Class> |
getServices()
List of RPC services
|
int |
getTargetPlatformVersion()
The target platform version this CorDapp was designed and tested on.
|
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.getShortName
which should be used instead.
Cordapp.Info.getShortName
java.util.List<java.lang.String> getContractClassNames()
List of contracts
java.util.List<java.lang.Class> getInitiatedFlows()
List of initiatable flow classes
java.util.List<java.lang.Class> getRpcFlows()
List of RPC initiable flows classes
java.util.List<java.lang.Class> getServiceFlows()
List of interface CordaService
initiable flows classes
interface CordaService
java.util.List<java.lang.Class> getSchedulableFlows()
List of flows startable by the scheduler
java.util.List<java.lang.Class> getServices()
List of RPC services
java.util.List<net.corda.core.serialization.SerializationWhitelist> getSerializationWhitelists()
List of Corda plugin registries
java.util.List<net.corda.core.serialization.SerializationCustomSerializer> getSerializationCustomSerializers()
List of serializers
java.util.List<net.corda.core.serialization.CheckpointCustomSerializer> getCheckpointCustomSerializers()
List of serializers for checkpoints
java.util.Set<net.corda.core.schemas.MappedSchema> getCustomSchemas()
List of custom schemas
java.util.List<java.lang.Class> getAllFlows()
List of all flow classes
java.net.URL getJarPath()
The path to the JAR for this CorDapp
java.util.List<java.lang.String> getCordappClasses()
An exhaustive list of all classes relevant to the node within this CorDapp
Cordapp.Info getInfo()
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.