...
Code Block |
---|
@Singleton class PreviewHelper { Map<PreviewIdMap<PreviewStageId, DefaultPreview> previewIdToDefaultPreviewpreviewStageIdToDefaultPreview; PreviewEmitter getPreviewEmitter(PreviewIdPreviewStageId identifier) { // create DefaultPreview for identifier in previewIdToDefaultPreviewpreviewStageIdToDefaultPreview and return if doesn't exist already, else get and return. } PreviewContext getPreviewContext(PreviewIdPreviewStageId identifier) { // create DefaultPreview for identifier in previewIdToDefaultPreviewpreviewStageIdToDefaultPreview and return if doesn't exist already, else get and return. } } |
Code Block | ||
---|---|---|
| ||
class PreviewStageId {
NamespaceId namespace;
String previewId; // this could be runId ?
String stageId;
} |
Implementation:
SDK:
Preview Execution Isolation:
...