public class FlowLogicRefFactory
extends SingletonSerializeAsToken
A class for conversion to and from class FlowLogic
and class FlowLogicRef
instances.
Validation of types is performed on the way in and way out in case this object is passed between JVMs which might have differing whitelists.
TODO: Ways to populate whitelist of "blessed" flows per node/party TODO: Ways to populate argument types whitelist. Per node/party or global? TODO: Align with API related logic for passing in FlowLogic references (FlowRef) TODO: Actual support for AppContext / AttachmentsClassLoader
class FlowLogic
,
class FlowLogicRef
Constructor and Description |
---|
FlowLogicRefFactory(java.util.Map<java.lang.String,? extends java.util.Set<java.lang.String>> flowWhitelist)
A class for conversion to and from
class FlowLogic and class FlowLogicRef instances. |
FlowLogicRefFactory() |
Modifier and Type | Method and Description |
---|---|
FlowLogicRef |
create(java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>> type,
java.lang.Object args)
Create a
class FlowLogicRef by matching against the available constructors and the given args. |
FlowLogicRef |
createKotlin(java.lang.String flowLogicClassName,
java.util.Map<java.lang.String,? extends java.lang.Object> args,
java.util.List<? extends net.corda.core.crypto.SecureHash> attachments)
Create a
class FlowLogicRef for the Kotlin primary constructor of a named class FlowLogic |
FlowLogicRef |
createKotlin(java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>> type,
java.util.Map<java.lang.String,? extends java.lang.Object> args)
Create a
class FlowLogicRef by trying to find a Kotlin constructor that matches the given args. |
FlowLogic<?> |
toFlowLogic(FlowLogicRef ref) |
toToken
toToken
public FlowLogicRefFactory(java.util.Map<java.lang.String,? extends java.util.Set<java.lang.String>> flowWhitelist)
A class for conversion to and from class FlowLogic
and class FlowLogicRef
instances.
Validation of types is performed on the way in and way out in case this object is passed between JVMs which might have differing whitelists.
TODO: Ways to populate whitelist of "blessed" flows per node/party TODO: Ways to populate argument types whitelist. Per node/party or global? TODO: Align with API related logic for passing in FlowLogic references (FlowRef) TODO: Actual support for AppContext / AttachmentsClassLoader
class FlowLogic
,
class FlowLogicRef
public FlowLogicRefFactory()
public FlowLogicRef createKotlin(java.lang.String flowLogicClassName, java.util.Map<java.lang.String,? extends java.lang.Object> args, java.util.List<? extends net.corda.core.crypto.SecureHash> attachments)
Create a class FlowLogicRef
for the Kotlin primary constructor of a named class FlowLogic
class FlowLogicRef
,
class FlowLogic
public FlowLogicRef create(java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>> type, java.lang.Object args)
Create a class FlowLogicRef
by matching against the available constructors and the given args.
class FlowLogicRef
public FlowLogicRef createKotlin(java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>> type, java.util.Map<java.lang.String,? extends java.lang.Object> args)
Create a class FlowLogicRef
by trying to find a Kotlin constructor that matches the given args.
TODO: Rethink language specific naming.
class FlowLogicRef
public FlowLogic<?> toFlowLogic(FlowLogicRef ref)