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

Examples of org.apache.isis.runtimes.dflt.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


    @Ignore
    // need to handle config
    @Test
    public void isisSystem() {
        final IsisSystem instance = injector.getInstance(IsisSystem.class);
        assertThat(instance, is(notNullValue()));
    }
View Full Code Here

            final InstallerLookup installerLookup = new InstallerLookupDefault();

            injector = createGuiceInjector(isisConfigurationBuilder, deploymentType, installerLookup);

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

            servletContext.setAttribute(WebAppConstants.ISIS_SYSTEM_KEY, system);
        } catch (final RuntimeException e) {
            LOG.error("startup failed", e);
            throw e;
View Full Code Here

    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

            }
        }

        // 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

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

    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

    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

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

    }

    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

TOP

Related Classes of org.apache.isis.runtimes.dflt.runtime.system.IsisSystem

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.