Examples of LauncherImpl


Examples of org.apache.tuscany.core.launcher.LauncherImpl

    private URL applicationSCDL;

    protected void setUp() throws Exception {
        super.setUp();
        ClassLoader cl = getClass().getClassLoader();
        LauncherImpl launcher = new LauncherImpl();
        launcher.setApplicationLoader(cl);
        CompositeComponent composite = launcher.bootRuntime(cl.getResource(LauncherImpl.METAINF_SYSTEM_SCDL_PATH),
                                                            new NullMonitorFactory());

        for (String extensionName : extensions.keySet()) {
            deployExtension(composite, extensionName, extensions.get(extensionName));
        }

        if (applicationSCDL == null) {
            throw new RuntimeException("application SCDL not found: " + applicationSCDL);
        }
        component = launcher.bootApplication("application", applicationSCDL);
        component.start();
        context = new CompositeContextImpl(component);
        context.start();
    }
View Full Code Here

Examples of org.apache.tuscany.core.launcher.LauncherImpl

        }
    }


    private void startRuntime(BundleContext context) throws OSGILauncherInitException {
        launcher = new LauncherImpl();
        // Current thread context classloader should be the webapp classloader
        ClassLoader webappClassLoader = Thread.currentThread().getContextClassLoader();
        launcher.setApplicationLoader(webappClassLoader);

        try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.