Package org.eclipse.osgi.framework.internal.core

Examples of org.eclipse.osgi.framework.internal.core.OSGi


        // Add the properties that were supplied by the caller.
        frameworkProperties.putAll(properties);

        // Create a standard adaptor and create the framework.
        FrameworkAdaptor adaptor = new BaseAdaptor(null);
        osgi = new OSGi(adaptor);

        BundleContext systemContext = osgi.getBundleContext();

        // Register the external service factory that can be used internally in
        // order to export services outside OSGi.
View Full Code Here


*/
public class EquinoxStartTestCase extends TestCase {

    public void testStart() throws Exception {
        FrameworkAdaptor adaptor = new DefaultAdaptor(new String[]{});
        OSGi osgi = new OSGi(adaptor);
        osgi.launch();
//        FileInputStream stream = new FileInputStream("/Users/jmarino/workspace/tuscany/tuscany/tuscany/sandbox/jboynes/sca/runtime/equinox/src/test/resources/http.jar");
//        osgi.getBundleContext().installBundle("foo", stream);
        for (Bundle bundle : osgi.getBundleContext().getBundles()) {

        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.framework.internal.core.OSGi

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.