Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 5e2dcc688e9bf1710d7f31bd6cef698536d12385 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*******************************************************************************
 * Copyright (c) 2011 Wind River Systems, Inc. and others. All rights reserved.
 * This program and the accompanying materials are made available under the terms
 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
 * available at http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.tcf.te.runtime.stepper;

import org.eclipse.tcf.te.runtime.stepper.extensions.manager.StepExtensionPointManager;
import org.eclipse.tcf.te.runtime.stepper.extensions.manager.StepGroupExtensionPointManager;

/**
 * Central manager providing access to the stepper, steps and step groups
 * contributed via extension points.
 */
public final class StepperManager {
	// References to the extension point managers
	private final StepExtensionPointManager stepExtManager = new StepExtensionPointManager();
	private final StepGroupExtensionPointManager stepGroupExtManager = new StepGroupExtensionPointManager();

	/*
	 * Thread save singleton instance creation.
	 */
	private static class LazyInstance {
		public static StepperManager instance = new StepperManager();
	}

	/**
	 * Constructor.
	 */
	StepperManager() {
		super();
	}

	/**
	 * Returns the singleton instance of the manager.
	 */
	public static StepperManager getInstance() {
		return LazyInstance.instance;
	}

	/**
	 * Returns the step extension point manager instance.
	 *
	 * @return The step extension point manager instance.
	 */
	public StepExtensionPointManager getStepExtManager() {
		return stepExtManager;
	}

	/**
	 * Returns the step group extension point manager instance.
	 *
	 * @return The step group extension point manager instance.
	 */
	public StepGroupExtensionPointManager getStepGroupExtManager() {
		return stepGroupExtManager;
	}
}

Back to the top