Internalize lttng.core APIs
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / resources / model / ResourceModelFactory.java
1 /*******************************************************************************
2 * Copyright (c) 2009 Ericsson
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 * Contributors:
10 * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
11 * Michel Dagenais (michel.dagenais@polymtl.ca) - Reference C implementation, used with permission
12 *******************************************************************************/
13 package org.eclipse.linuxtools.lttng.ui.views.resources.model;
14
15 import org.eclipse.linuxtools.lttng.ui.views.common.ParamsUpdater;
16
17 /**
18 * Instantiates the entry point classes to build the data model for this view
19 *
20 * @author alvaro
21 *
22 */
23 public class ResourceModelFactory {
24 // ========================================================================
25 // Data
26 // ========================================================================
27 private static ResourceContainer resContainer = null;
28 private static ParamsUpdater updater = null;
29
30
31 // ========================================================================
32 // Methods
33 // ========================================================================
34 /**
35 * Get Process data container
36 * @return
37 */
38 public static ResourceContainer getResourceContainer() {
39 if (resContainer == null) {
40 resContainer = new ResourceContainer();
41 }
42 return resContainer;
43 }
44
45
46 public static ParamsUpdater getParamsUpdater() {
47 if (updater == null) {
48 updater = new ParamsUpdater();
49 }
50 return updater;
51 }
52
53 }
This page took 0.030849 seconds and 5 git commands to generate.