Package org.eclipse.osgi.launch

Examples of org.eclipse.osgi.launch.Equinox


    props.put(Constants.FRAMEWORK_STORAGE, compositeStorage.getAbsolutePath());
    // save the parent framework so the parent companion bundle can find it
    props.put(PROP_PARENTFRAMEWORK, thisFramework.getSystemBundleContext().getBundle());
    // TODO leaks "this" out of the constructor
    props.put(PROP_COMPOSITE, this);
    Equinox equinox = new Equinox(props);
    if (!firstTime)
      // if not the first time then we are done
      return equinox;
    equinox.init();
    installSurrogate(equinox.getBundleContext(), thisData);
    return equinox;
  }
View Full Code Here


    props.put(Constants.FRAMEWORK_STORAGE, compositeStorage.getAbsolutePath());
    // save the parent framework so the parent companion bundle can find it
    props.put(PROP_PARENTFRAMEWORK, thisFramework.getSystemBundleContext().getBundle());
    // TODO leaks "this" out of the constructor
    props.put(PROP_COMPOSITE, this);
    Equinox equinox = new Equinox((Map) props);
    if (!firstTime)
      // if not the first time then we are done
      return equinox;
    equinox.init();
    installSurrogate(equinox.getBundleContext(), thisData);
    return equinox;
  }
View Full Code Here

        for (Entry<Object, Object> entry :  props.entrySet()) {
            map.put(entry.getKey().toString(), entry.getValue().toString());
        }

        // Create the framework instance
        framework = new Equinox(map);
        framework.init();
        framework.start();

        syscontext = framework.getBundleContext();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.launch.Equinox

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.