Interface Exercises.Archive<Cmd>
-
- All Superinterfaces:
Exercises<Cmd>
public static interface Exercises.Archive<Cmd> extends Exercises<Cmd>
AddsexerciseArchive()to every exercise target.The goal is to correct the problem of having
ContractIdimplementExercises.makeExerciseCmd(com.daml.ledger.javaapi.data.codegen.Choice<?, ? super A, R>, A)directly. That was a mistake, but one at least obviated by the fact thatExercises.makeExerciseCmd(com.daml.ledger.javaapi.data.codegen.Choice<?, ? super A, R>, A)is clearly part of the internal API, so if you use it directly anyway and you get weird exceptions, you get to keep both pieces of your program. WithexerciseArchive()we can correct the problem by havingExercises.Archivebe the realExercisesinterface, and the distinction can be flattened when breaking compatibility.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.daml.ledger.javaapi.data.codegen.Exercises
Exercises.Archive<Cmd>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Update<Exercised<Unit>>exerciseArchive()
-