Package org.apache.isis.runtimes.dflt.runtime.installerregistry

Examples of org.apache.isis.runtimes.dflt.runtime.installerregistry.InstallerLookup


        final List<IsisViewer> viewers = injector.getInstance(ViewerList.class).getViewers();

        // looking up viewers may have merged in some further config files,
        // so update the NOContext global
        // REVIEW: would rather inject this
        final InstallerLookup installerLookup = injector.getInstance(InstallerLookup.class);
        IsisContext.setConfiguration(installerLookup.getConfiguration());

        return viewers;
    }
View Full Code Here


    private void startWebViewers(final Injector injector, final List<IsisViewer> webViewers) {
        if (webViewers.size() == 0) {
            return;
        }

        final InstallerLookup installerLookup = injector.getInstance(InstallerLookup.class);

        // TODO: we could potentially offer pluggability here
        final EmbeddedWebServerInstaller webServerInstaller = installerLookup.embeddedWebServerInstaller(Isis.DEFAULT_EMBEDDED_WEBSERVER);
        final EmbeddedWebServer embeddedWebServer = webServerInstaller.createEmbeddedWebServer();
        for (final IsisViewer viewer : webViewers) {
            final WebAppSpecification webContainerRequirements = viewer.getWebAppSpecification();
            embeddedWebServer.addWebAppSpecification(webContainerRequirements);
        }
View Full Code Here

            addConfigurationResourcesForViewers(isisConfigurationBuilder, servletContext);

            isisConfigurationBuilder.add(WebAppConstants.WEB_APP_DIR, webappDir);
            isisConfigurationBuilder.add(SystemConstants.NOSPLASH_KEY, "true");

            final InstallerLookup installerLookup = new InstallerLookupDefault();

            injector = createGuiceInjector(isisConfigurationBuilder, deploymentType, installerLookup);

            final IsisSystem system = injector.getInstance(IsisSystem.class);
View Full Code Here

    public RunViewer(final Scenario story) {
        super(story);
    }

    public void run() {
        final InstallerLookup installerLookup = getStory().getInstallerLookup();

        final IsisViewerInstaller viewerInstaller = installerLookup.viewerInstaller(DND_VIEWER_NAME);
        final IsisViewer viewer = viewerInstaller.createViewer();

        viewer.init();
    }
View Full Code Here

        final List<IsisViewer> viewers = injector.getInstance(ViewerList.class).getViewers();

        // looking up viewers may have merged in some further config files,
        // so update the NOContext global
        // REVIEW: would rather inject this
        final InstallerLookup installerLookup = injector.getInstance(InstallerLookup.class);
        IsisContext.setConfiguration(installerLookup.getConfiguration());

        return viewers;
    }
View Full Code Here

    private void startWebViewers(final Injector injector, final List<IsisViewer> webViewers) {
        if (webViewers.size() == 0) {
            return;
        }

        final InstallerLookup installerLookup = injector.getInstance(InstallerLookup.class);

        // TODO: we could potentially offer pluggability here
        final EmbeddedWebServerInstaller webServerInstaller =
            installerLookup.embeddedWebServerInstaller(Isis.DEFAULT_EMBEDDED_WEBSERVER);
        final EmbeddedWebServer embeddedWebServer = webServerInstaller.createEmbeddedWebServer();
        for (final IsisViewer viewer : webViewers) {
            final WebAppSpecification webContainerRequirements = viewer.getWebAppSpecification();
            embeddedWebServer.addWebAppSpecification(webContainerRequirements);
        }
View Full Code Here

            addConfigurationResourcesForViewers(isisConfigurationBuilder, servletContext);

            isisConfigurationBuilder.add(WebAppConstants.WEB_APP_DIR, webappDir);
            isisConfigurationBuilder.add(SystemConstants.NOSPLASH_KEY, "true");

            final InstallerLookup installerLookup = new InstallerLookupDefault();

            injector = createGuiceInjector(isisConfigurationBuilder, deploymentType, installerLookup);

            final IsisSystem system = injector.getInstance(IsisSystem.class);
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.runtime.installerregistry.InstallerLookup

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.