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

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


  @Override
  protected void init() {
    super.init();
        getResourceSettings().setParentFolderPlaceholder("$up$");
   
        DeploymentType deploymentType = determineDeploymentType();
       
        IsisConfigurationBuilder isisConfigurationBuilder = createConfigBuilder();
       
        final IsisModule isisModule = new IsisModule(deploymentType, isisConfigurationBuilder);
        final Injector injector = Guice.createInjector(isisModule, newIsisWicketModule());
View Full Code Here


    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

        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

        injector = Guice.createInjector(wicketObjectsModule);
    }

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

        }
    }

    public void ensureAvailableForDeploymentType(final CellBinding onMemberBinding, final ScenarioCell onMemberCell)
        throws ScenarioBoundValueException {
        final DeploymentType deploymentType = this.peer.getDeploymentType();

        final boolean isExploration = objectMember.getFacet(ExplorationFacet.class) != null;
        if (isExploration && !deploymentType.isExploring()) {
            throw ScenarioBoundValueException.current(onMemberBinding, "(not running in exploration mode)");
        }

        final boolean isPrototype = objectMember.getFacet(PrototypeFacet.class) != null;
        if (isPrototype && !deploymentType.isPrototyping()) {
            throw ScenarioBoundValueException.current(onMemberBinding, "(not running in prototype mode)");
        }
    }
View Full Code Here

        assertThat(authenticator.getConfiguration(), is(mockConfiguration));
    }

    @Test
    public void getDeploymentTypeForExploration() throws Exception {
        final DeploymentType deploymentType = DeploymentType.EXPLORATION;
        mockery.checking(new Expectations() {
            {
                allowing(mockConfiguration).getString("isis.deploymentType");
                will(returnValue(deploymentType.name()));
            }
        });
        assertThat(authenticator.getDeploymentType(), is(deploymentType));
    }
View Full Code Here

        assertThat(authenticator.getDeploymentType(), is(deploymentType));
    }

    @Test
    public void getDeploymentTypeForPrototype() throws Exception {
        final DeploymentType deploymentType = DeploymentType.PROTOTYPE;
        mockery.checking(new Expectations() {
            {
                allowing(mockConfiguration).getString("isis.deploymentType");
                will(returnValue(deploymentType.name()));
            }
        });
        assertThat(authenticator.getDeploymentType(), is(deploymentType));
    }
View Full Code Here

        assertThat(authenticator.getDeploymentType(), is(deploymentType));
    }

    @Test
    public void getDeploymentTypeForServer() throws Exception {
        final DeploymentType deploymentType = DeploymentType.SERVER;
        mockery.checking(new Expectations() {
            {
                allowing(mockConfiguration).getString("isis.deploymentType");
                will(returnValue(deploymentType.name()));
            }
        });
        assertThat(authenticator.getDeploymentType(), is(deploymentType));
    }
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.