os.linux: Do not rely on static initialisation order for layouts
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.core.tests / stubs / org / eclipse / tracecompass / analysis / os / linux / core / tests / stubs / trace / KernelEventLayoutStub.java
1 /*******************************************************************************
2 * Copyright (c) 2016 École Polytechnique de Montréal
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
9
10 package org.eclipse.tracecompass.analysis.os.linux.core.tests.stubs.trace;
11
12 import org.eclipse.tracecompass.analysis.os.linux.core.trace.DefaultEventLayout;
13
14 /**
15 * Class to extend to be able to set the event names for the os unit tests.
16 *
17 * @author Geneviève Bastien
18 */
19 public class KernelEventLayoutStub extends DefaultEventLayout {
20
21 /**
22 * Protected constructor
23 */
24 protected KernelEventLayoutStub() {
25 super();
26 }
27
28 private static final KernelEventLayoutStub INSTANCE = new KernelEventLayoutStub();
29
30 /**
31 * Get an instance of this event layout
32 *
33 * This object is completely immutable, so no need to create additional
34 * instances via the constructor.
35 *
36 * @return The instance
37 */
38 public static synchronized KernelEventLayoutStub getInstance() {
39 return INSTANCE;
40 }
41
42 }
This page took 0.031633 seconds and 5 git commands to generate.