public FlowLogicRefFactory
The public factory interface for creating validated interface FlowLogicRef
instances as part of the scheduling framework.
Typically this would be used from within the nextScheduledActivity method of a SchedulableState to specify the flow to run at the scheduled time.
interface FlowLogicRef
Modifier and Type | Method and Description |
---|---|
FlowLogicRef |
create(java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>> flowClass,
java.lang.Object args)
Construct a FlowLogicRef. This is intended for cases where the calling code has the relevant class already
and can provide it directly.
|
FlowLogicRef |
create(java.lang.String flowClassName,
java.lang.Object args)
Construct a FlowLogicRef. This is intended for cases where the calling code does not want to require the flow
class on the classpath for all cases where the calling code is loaded.
|
FlowLogic<?> |
toFlowLogic(FlowLogicRef ref)
Converts a
interface FlowLogicRef object that was obtained from the calls above into a class FlowLogic , after doing some
validation to ensure it points to a legitimate flow class. |
FlowLogicRef create(java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>> flowClass, java.lang.Object args)
Construct a FlowLogicRef. This is intended for cases where the calling code has the relevant class already and can provide it directly.
FlowLogicRef create(java.lang.String flowClassName, java.lang.Object args)
Construct a FlowLogicRef. This is intended for cases where the calling code does not want to require the flow class on the classpath for all cases where the calling code is loaded.
FlowLogic<?> toFlowLogic(FlowLogicRef ref)
Converts a interface FlowLogicRef
object that was obtained from the calls above into a class FlowLogic
, after doing some
validation to ensure it points to a legitimate flow class.
interface FlowLogicRef
,
class FlowLogic