Package org.apache.tuscany.host

Examples of org.apache.tuscany.host.RuntimeInfo


     */
    public void testResolveArtifact() throws Exception {

        final URL BASE_URL = new File(System.getProperty("user.home") + File.separator + ".m2").toURL();
        String remoteRepoUrl = "http://repo1.maven.org/maven2/";
        MavenArtifactRepository repository = new MavenArtifactRepository(remoteRepoUrl, new RuntimeInfo() {
            public File getApplicationRootDirectory() {
                return null;
            }

            public URL getBaseURL() {
View Full Code Here


        runtime = bootstrapper.createRuntime();
        runtime.start(); // REVIEW: is this redundant w/ the composite.start() call below?

        // initialize the runtime info
        CompositeComponent parent = runtime.getSystemComponent();
        RuntimeInfo runtimeInfo = new LauncherRuntimeInfo(getInstallDirectory(), getApplicationRootDirectory(), true);
        parent.registerJavaObject("RuntimeInfo", RuntimeInfo.class, runtimeInfo);

        // registory the monitor factory
        parent.registerJavaObject("MonitorFactory", MonitorFactory.class, monitor);
View Full Code Here

        runtime = bootstrapper.createRuntime();
        runtime.start();
        systemComponent = runtime.getSystemComponent();

        // register the runtime info provided by the host
        RuntimeInfo runtimeInfo = getRuntimeInfo();
        systemComponent.registerJavaObject(RuntimeInfo.COMPONENT_NAME, RuntimeInfo.class, runtimeInfo);
        systemComponent.registerJavaObject(StandaloneRuntimeInfo.COMPONENT_NAME,
                                           StandaloneRuntimeInfo.class,
                                           (StandaloneRuntimeInfo) runtimeInfo);
View Full Code Here

TOP

Related Classes of org.apache.tuscany.host.RuntimeInfo

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.