You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Primary change
============
Added support in the Corda ledger connector plugin's JVM backend to
have the JSON DSL be able to express static and non-static factory
functions.
For the non-static factory functions, the invocation target can be any
constructable object that the DLS can express via the `JvmObject` type.
The method lookups are performed the same way as when looking up
constructors but with the additional constraint that the name of the
method has to also match not just the parameter types/count.
Miscellaneous changes
==================
Refactored ApiPluginLedgerConnectorCordaServiceImpl.kt so that it
does not include the JSON DSL deserialization logic within itself but
instead outsources all of that to a separate class that was newly added
just for this: JsonJvmObjectDeserializer.kt
Updated the tests to specify the new invocation parameters accordingly:
The Currency class is now instantiated through the JSON DLS thanks to
the static factory method support we just added.
Published the container image to the DockerHub registry with the updated
JVM corda connector plugin under the tag:
hyperledger/cactus-connector-corda-server:2021-03-24-feat-620
(which is now used by both of the integration tests that we
currently have for corda)
The contract deployment request object will now allow a minimum of
zero items in the deployment configuration array parameter which
we needed to cover the case when a jar only needs to be deployed
to the classpath of the connector plugin because it is already present
on the Corda node's cordapps directory (meaning that adding it there
again would make it impossible to start back up the corda node)
Fixeshyperledger-cacti#620
Signed-off-by: Peter Somogyvari <[email protected]>
Copy file name to clipboardExpand all lines: packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/impl/ApiPluginLedgerConnectorCordaServiceImpl.kt
Copy file name to clipboardExpand all lines: packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DeployContractJarsV1Request.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ data class DeployContractJarsV1Request(
Copy file name to clipboardExpand all lines: packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JvmType.kt
* Represents a reference to a JVM type (such as a Java class)
16
17
* @param fqClassName
18
+
* @param constructorName This parameter is used to specify that the function used to construct this JvmType is not a constructor function but instead is a factory function. Setting this parameter will cause the plugin to look up methods of the class denoted by fqClassName instead of its constructors.
0 commit comments