ust: Add trace constructor with event factory
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.ust.core / src / org / eclipse / tracecompass / lttng2 / ust / core / trace / LttngUstTrace.java
index 96e9b9dd401acffca2605d06651682e1d0e61f26..ab98e513d77db3b9af3f6a4f4ba2dc4eb83669bb 100644 (file)
@@ -37,6 +37,7 @@ import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
 import org.eclipse.tracecompass.tmf.core.event.aspect.ITmfEventAspect;
 import org.eclipse.tracecompass.tmf.core.exceptions.TmfTraceException;
 import org.eclipse.tracecompass.tmf.core.trace.TraceValidationStatus;
+import org.eclipse.tracecompass.tmf.ctf.core.event.CtfTmfEventFactory;
 import org.eclipse.tracecompass.tmf.ctf.core.trace.CtfTmfTrace;
 import org.eclipse.tracecompass.tmf.ctf.core.trace.CtfTraceValidationStatus;
 import org.eclipse.tracecompass.tmf.ctf.core.trace.CtfUtils;
@@ -80,6 +81,19 @@ public class LttngUstTrace extends CtfTmfTrace {
         super(LttngUstEventFactory.instance());
     }
 
+    /**
+     * Protected constructor for child classes. Classes extending this one may
+     * have extra fields coming from the event itself and may pass their own
+     * event factory.
+     *
+     * @param factory
+     *            The event factory for this specific trace
+     * @since 2.2
+     */
+    protected LttngUstTrace(@NonNull CtfTmfEventFactory factory) {
+        super(factory);
+    }
+
     /**
      * Get the event layout to use with this trace. This normally depends on the
      * tracer's version.
This page took 0.025745 seconds and 5 git commands to generate.