1 package oic.simulator.serviceprovider;
3 import oic.simulator.serviceprovider.manager.ResourceManager;
5 import org.eclipse.ui.plugin.AbstractUIPlugin;
6 import org.osgi.framework.BundleContext;
9 * The activator class controls the plug-in life cycle
11 public class Activator extends AbstractUIPlugin {
14 public static final String PLUGIN_ID = "ServiceProviderPlugin"; //$NON-NLS-1$
16 // The shared instance
17 private static Activator plugin;
19 private static ResourceManager manager;
31 * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
34 public void start(BundleContext context) throws Exception {
37 setManager(new ResourceManager());
44 * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext
47 public void stop(BundleContext context) throws Exception {
53 * Returns the shared instance
55 * @return the shared instance
57 public static Activator getDefault() {
61 public static ResourceManager getManager() {
65 public static void setManager(ResourceManager manager) {
66 Activator.manager = manager;