Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
titlePreviewStageId
class PreviewStageId {
	NamespaceId namespace;
	String previewId; // this could be runId ?
	String stageId;
}

 

Implementation:

 

SDK:

Preview Execution Isolation:

...