Class UnminimizeHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.core.ui.minimize.UnminimizeHelper
- All Implemented Interfaces:
LogEnabled
,Component
,Contextualizable
,Serviceable
public class UnminimizeHelper
extends AbstractLogEnabled
implements Component, Serviceable, Contextualizable
Manager for minimized source map
-
Field Summary
Modifier and TypeFieldDescriptionprotected Context
Avalon contextprotected SourceResolver
SourceResolverprotected SourceMapCache
The SourceMap cache -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) void
service
(ServiceManager manager) unminifyStackTrace
(List<Map<String, String>> stacktraceData) Undo the mapping of the stacktrace by providing the original filename, line and columnMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_sourceMapCache
The SourceMap cache -
_context
Avalon context -
_resolver
SourceResolver
-
-
Constructor Details
-
UnminimizeHelper
public UnminimizeHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
unminifyStackTrace
public List<Map<String,String>> unminifyStackTrace(List<Map<String, String>> stacktraceData) throws SourceNotFoundException, IOException, com.google.debugging.sourcemap.SourceMapParseExceptionUndo the mapping of the stacktrace by providing the original filename, line and column- Parameters:
stacktraceData
- The list of stacktrace data, containing the filename, line and column of the minimized file- Returns:
- The list of data, complemented with the original file data when found
- Throws:
SourceNotFoundException
- If an error occurredIOException
- If an error occurredcom.google.debugging.sourcemap.SourceMapParseException
- If an error occurred
-