Package org.eclipse.osgi.launch

Examples of org.eclipse.osgi.launch.EquinoxFactory


     *
     * @throws BundleException
     */
    @BeforeClass
    public static void initOsgiFramework() throws BundleException {
        final FrameworkFactory factory = new EquinoxFactory();
        final Map<String, String> configMap = new HashMap<String, String>(2);
        // Cleans framework before first init. Subsequent init invocations do not clean framework.
        configMap.put("org.osgi.framework.storage.clean", "onFirstInit");
        // Delegates loading of endorsed libraries to JVM classloader
        // config.put("org.osgi.framework.bootdelegation", "javax.*,org.w3c.*,org.xml.*");
        OsgiFramework = factory.newFramework(configMap);
        OsgiFramework.init();
        OsgiFramework.start();
    }
View Full Code Here

TOP

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

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.