Class ConsoleTracerFactory
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.execution.TracerFactory
-
- net.ssehub.easy.instantiation.core.model.tracing.ConsoleTracerFactory
-
public class ConsoleTracerFactory extends TracerFactory
Factory for the creation of VIL build language tracer and VIL template language tracer. This is used to send tracer messages about the execution of VIL build scripts and templates to the GUI, in particle, the Eclipse console.- Author:
- kroeher
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.ssehub.easy.instantiation.core.model.execution.TracerFactory
TracerFactory.DefaultTracerFactory
-
-
Field Summary
Fields Modifier and Type Field Description static TracerFactoryINSTANCEThe tracer factory instance.private StreamVilTracertracer-
Fields inherited from class net.ssehub.easy.instantiation.core.model.execution.TracerFactory
BUILDLANG_TRACERS, DEFAULT, EMPTY_INSTANTIATOR_TRACER, PROGRESS_OBSERVERS, TEMPLATELANG_TRACERS
-
-
Constructor Summary
Constructors Modifier Constructor Description privateConsoleTracerFactory()Constructs a new tracer factory and sets this instance as the default factory.ConsoleTracerFactory(boolean emitTraceText)Constructs a new tracer factory which may emit tracer texts.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITracercreateBuildLanguageTracerImpl()Creates a tracer for the VIL build language.IInstantiatorTracercreateInstantiatorTracerImpl()Creates a tracer for instantiators, i.e., to send messages to the VIL output.ITracercreateTemplateLanguageTracerImpl()Creates a tracer for the VIL template language.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.execution.TracerFactory
closeTasks, createBuildLanguageTracer, createInstantiatorTracer, createTemplateLanguageTracer, ensureTasks, getDefaultInstance, getInstance, getRegisteredBuildLanguageTracer, getRegisteredTemplateLanguageTracer, getTraceFilter, progress, progressSubTask, registerBuildLanguageTracer, registerProgressObserver, registerTemplateLanguageTracer, setDefaultInstance, setInstance, setTraceFilter, unregisterBuildLanguageTracer, unregisterProgressObserver, unregisterTemplateLanguageTracer
-
-
-
-
Field Detail
-
INSTANCE
public static final TracerFactory INSTANCE
The tracer factory instance.
-
tracer
private StreamVilTracer tracer
-
-
Constructor Detail
-
ConsoleTracerFactory
private ConsoleTracerFactory()
Constructs a new tracer factory and sets this instance as the default factory.
-
ConsoleTracerFactory
public ConsoleTracerFactory(boolean emitTraceText)
Constructs a new tracer factory which may emit tracer texts. Does not change the default factory as opposed toConsoleTracerFactory().- Parameters:
emitTraceText- whether text passed to#trace(String)shall be emitted
-
-
Method Detail
-
createTemplateLanguageTracerImpl
public ITracer createTemplateLanguageTracerImpl()
Description copied from class:TracerFactoryCreates a tracer for the VIL template language.- Specified by:
createTemplateLanguageTracerImplin classTracerFactory- Returns:
- a tracer instance for the VIL template language (null will lead to the
corresponding result by
TracerFactory.DEFAULT)
-
createBuildLanguageTracerImpl
public ITracer createBuildLanguageTracerImpl()
Description copied from class:TracerFactoryCreates a tracer for the VIL build language.- Specified by:
createBuildLanguageTracerImplin classTracerFactory- Returns:
- a tracer instance for the VIL build language (null will lead to the
corresponding result by
TracerFactory.DEFAULT)
-
createInstantiatorTracerImpl
public IInstantiatorTracer createInstantiatorTracerImpl()
Description copied from class:TracerFactoryCreates a tracer for instantiators, i.e., to send messages to the VIL output.- Specified by:
createInstantiatorTracerImplin classTracerFactory- Returns:
- the instantiator tracer
-
-