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

Examples of org.apache.isis.runtimes.dflt.runtime.system.DeploymentType


    private DeploymentType deploymentType;
    XmlPersistenceMechanismInstaller installer;

    @Before
    public void setUp() throws Exception {
        deploymentType = new DeploymentType("SINGLE_USER", DeploymentCategory.PRODUCTION, ContextCategory.STATIC, SystemConstants.VIEWER_DEFAULT, Splash.NO_SHOW);
        installer = new XmlPersistenceMechanismInstaller();
    }
View Full Code Here


            list = createServices(prefix, serviceList);
        } else {
            list = new ArrayList<Object>();
        }
        if (configuration.getBoolean(root + EXPLORATION_OBJECTS)) {
            final DeploymentType deploymentType = DeploymentType.lookup(configuration.getString(SystemConstants.DEPLOYMENT_TYPE_KEY));
            if (deploymentType.isExploring()) {
                list.add(new ObjectFixtureService());
            }
        }
        final Object[] array = list.toArray(new Object[list.size()]);
        return array;
View Full Code Here

        injector = Guice.createInjector(wicketObjectsModule);
    }

    @Test
    public void deploymentType() {
        final DeploymentType instance = injector.getInstance(DeploymentType.class);
        assertThat(instance, is(notNullValue()));
    }
View Full Code Here

            // will load either from WEB-INF or from the classpath.
            final IsisConfigurationBuilder isisConfigurationBuilder = new IsisConfigurationBuilderResourceStreams(new ResourceStreamSourceForWebInf(servletContext), ResourceStreamSourceContextLoaderClassPath.create());

            primeConfigurationBuilder(isisConfigurationBuilder, servletContext);

            final DeploymentType deploymentType = determineDeploymentType(isisConfigurationBuilder, servletContext);

            addConfigurationResourcesForWebApps(isisConfigurationBuilder);
            addConfigurationResourcesForDeploymentType(isisConfigurationBuilder, deploymentType);
            addConfigurationResourcesForViewers(isisConfigurationBuilder, servletContext);
View Full Code Here

        IsisSystemUsingInstallersWithinJunit system = null;
        AuthenticationSession session = null;
        try {
            // init the system; cf similar code in Isis and
            // IsisServletContextInitializer
            final DeploymentType deploymentType = DeploymentType.PROTOTYPE;

            // TODO: replace with regular IsisSystem and remove this subclass.
            system = new IsisSystemUsingInstallersWithinJunit(deploymentType, installerLookup, testClass);

            system.init();
View Full Code Here

     * Valid providing running in {@link DeploymentType#isExploring()
     * exploration} or {@link DeploymentType#isPrototyping() prototyping} mode.
     */
    @Override
    public final boolean isValid(final AuthenticationRequest request) {
        final DeploymentType deploymentType = getDeploymentType();
        return deploymentType.isExploring() || deploymentType.isPrototyping();
    }
View Full Code Here

        }
        return true;
    }

    private boolean validateOptions(final Options options, final BootPrinter printer) {
        final DeploymentType deploymentType = optionHandlerDeploymentType.getDeploymentType();

        for (final OptionValidator validator : validators) {
            final Maybe<String> errorMessage = validator.validate(deploymentType);
            if (errorMessage.isSet()) {
                printer.printErrorAndHelp(options, errorMessage.get());
View Full Code Here

    // Bootstrapping
    // ///////////////////////////////////////////////////////////////////////////////////////

    public final void bootstrap(final IsisBootstrapper bootstrapper) {

        final DeploymentType deploymentType = optionHandlerDeploymentType.getDeploymentType();

        this.globalInjector = createGuiceInjector(deploymentType, isisConfigurationBuilder, installerLookup, optionHandlers);

        bootstrapper.bootstrap(globalInjector);
    }
View Full Code Here

    @Override
    protected void init() {
        super.init();
        getResourceSettings().setParentFolderPlaceholder("$up$");

        final DeploymentType deploymentType = determineDeploymentType();

        final IsisConfigurationBuilder isisConfigurationBuilder = createConfigBuilder();

        final IsisModule isisModule = new IsisModule(deploymentType, isisConfigurationBuilder);
        final Injector injector = Guice.createInjector(isisModule, newIsisWicketModule());
View Full Code Here

    @Override
    protected void init() {
        super.init();
        getResourceSettings().setParentFolderPlaceholder("$up$");

        final DeploymentType deploymentType = determineDeploymentType();

        final IsisConfigurationBuilder isisConfigurationBuilder = createConfigBuilder();

        final IsisModule isisModule = new IsisModule(deploymentType, isisConfigurationBuilder);
        final Injector injector = Guice.createInjector(isisModule, newIsisWicketModule());
View Full Code Here

TOP

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

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.