Examples of IsisSystem


Examples of org.apache.isis.core.runtime.system.IsisSystem

    }

    private void bootstrapSystem(final Injector injector) {

        // sufficient just to look it up
        @SuppressWarnings("unused")
        final IsisSystem system = injector.getInstance(IsisSystem.class);
    }
View Full Code Here

Examples of org.apache.isis.core.runtime.system.IsisSystem

            }
        }

        // otherwise, look for LogonFixture and try to authenticate
        final ServletContext servletContext = getServletContext(servletRequest);
        final IsisSystem system = (IsisSystem) servletContext.getAttribute(WebAppConstants.ISIS_SYSTEM_KEY);
        if (system == null) {
            // not expected to happen...
            return null;
        }
        final LogonFixture logonFixture = system.getLogonFixture();

        // see if exploration is supported
        if (system.getDeploymentType().isExploring()) {
            authSession = authenticationManager.authenticate(new AuthenticationRequestExploration(logonFixture));
            if (authSession != null) {
                return authSession;
            }
        }
View Full Code Here

Examples of org.apache.isis.core.runtime.system.IsisSystem

            final InstallerLookup installerLookup = new InstallerLookupDefault();

            injector = createGuiceInjector(isisConfigurationBuilder, deploymentType, installerLookup);

            final IsisSystem system = injector.getInstance(IsisSystem.class);

            isisConfigurationBuilder.lockConfiguration();
            isisConfigurationBuilder.dumpResourcesToLog();

            servletContext.setAttribute(WebAppConstants.ISIS_SYSTEM_KEY, system);
View Full Code Here

Examples of org.apache.isis.core.runtime.system.IsisSystem

    public void contextDestroyed(final ServletContextEvent ev) {
        LOG.info("server shutting down");
        final ServletContext servletContext = ev.getServletContext();

        try {
            final IsisSystem system = (IsisSystem) servletContext.getAttribute(WebAppConstants.ISIS_SYSTEM_KEY);
            if (system != null) {
                LOG.info("calling system shutdown");
                system.shutdown();
            }
        } finally {
            servletContext.removeAttribute(WebAppConstants.ISIS_SYSTEM_KEY);
            LOG.info("server shut down");
        }
View Full Code Here

Examples of org.apache.isis.core.runtime.system.IsisSystem

    @Provides
    @Inject
    @Singleton
    protected IsisSystem provideIsisSystem(final DeploymentType deploymentType, final IsisSystemFactory systemFactory) {
        final IsisSystem system = systemFactory.createSystem(deploymentType);
        system.init();
        return system;
    }
View Full Code Here

Examples of org.apache.isis.core.runtime.system.IsisSystem

            final InstallerLookup installerLookup = new InstallerLookup();

            injector = createGuiceInjector(isisConfigurationBuilder, deploymentType, installerLookup);

            final IsisSystem system = injector.getInstance(IsisSystem.class);

            isisConfigurationBuilder.lockConfiguration();
            isisConfigurationBuilder.dumpResourcesToLog();

            servletContext.setAttribute(WebAppConstants.ISIS_SYSTEM_KEY, system);
View Full Code Here

Examples of org.apache.isis.core.runtime.system.IsisSystem

    public void contextDestroyed(final ServletContextEvent ev) {
        LOG.info("server shutting down");
        final ServletContext servletContext = ev.getServletContext();

        try {
            final IsisSystem system = (IsisSystem) servletContext.getAttribute(WebAppConstants.ISIS_SYSTEM_KEY);
            if (system != null) {
                LOG.info("calling system shutdown");
                system.shutdown();
            }
        } finally {
            servletContext.removeAttribute(WebAppConstants.ISIS_SYSTEM_KEY);
            LOG.info("server shut down");
        }
View Full Code Here

Examples of org.apache.isis.core.runtime.system.IsisSystem

    @Provides
    @Inject
    @Singleton
    protected IsisSystem provideIsisSystem(final DeploymentType deploymentType, final IsisSystemFactory systemFactory) {
        final IsisSystem system = systemFactory.createSystem(deploymentType);
        system.init();
        return system;
    }
View Full Code Here

Examples of org.apache.isis.core.runtime.system.IsisSystem

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

    public void shutdown() {
        final IsisSystem system = getStory().getSystem();

        IsisContext.closeAllSessions();

        if (system != null) {
            system.shutdown();
        }

    }
View Full Code Here

Examples of org.apache.isis.core.runtime.system.IsisSystem

    private IsisSystem createSystem(final DeploymentType deploymentType, final IsisConfigurationBuilder isisConfigurationBuilder) {
        this.installerLookup = new InstallerLookupDefault();
        isisConfigurationBuilder.injectInto(installerLookup);

        final Injector injector = createGuiceInjector(deploymentType, isisConfigurationBuilder, installerLookup);
        final IsisSystem system = injector.getInstance(IsisSystem.class);
        return system;
    }
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.