Class AbstractContext

    • Constructor Detail

      • AbstractContext

        public AbstractContext()
    • Method Detail

      • injectExportableParams

        public void injectExportableParams​(Map<String,​Object> input)
        This method needs to be implemented by the actual context implementations to inject the params they need for exporting.
        Parameters:
        input - pass exportable params in here.
      • exportAsString

        public String exportAsString​(Context.ExportFormat format)
        Description copied from interface: Context
        Export this context into the specified format.
        Specified by:
        exportAsString in interface Context
        Parameters:
        format - the format to export into.
        Returns:
        the exported format as a string representation.
      • exportAsMap

        public Map<String,​Object> exportAsMap()
        Description copied from interface: Context
        Export this context into a generic map.
        Specified by:
        exportAsMap in interface Context
        Returns:
        the exported format in a generic map representation.