Examples of DeploymentType


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

    protected DeploymentTypeWicketAbstract determineDeploymentType(String deploymentTypeFromConfig) {
        final DeploymentTypeWicketAbstract prototype = new WicketServerPrototype();
        final DeploymentTypeWicketAbstract deployment = new WicketServer();

        if(deploymentTypeFromConfig != null) {
            final DeploymentType deploymentType = DeploymentType.lookup(deploymentTypeFromConfig);
            return !deploymentType.getDeploymentCategory().isProduction()
                    ? prototype
                    : deployment;
        } else {
            return usesDevelopmentConfig()
                    ? prototype
View Full Code Here

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

    protected DeploymentTypeWicketAbstract determineDeploymentType(String deploymentTypeFromConfig) {
        final DeploymentTypeWicketAbstract prototype = new WicketServerPrototype();
        final DeploymentTypeWicketAbstract deployment = new WicketServer();

        if(deploymentTypeFromConfig != null) {
            final DeploymentType deploymentType = DeploymentType.lookup(deploymentTypeFromConfig);
            return !deploymentType.getDeploymentCategory().isProduction()
                    ? prototype
                    : deployment;
        } else {
            return usesDevelopmentConfig()
                    ? prototype
View Full Code Here

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

    }

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

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

    protected DeploymentTypeWicketAbstract determineDeploymentType(String deploymentTypeFromConfig) {
        final DeploymentTypeWicketAbstract prototype = new WicketServerPrototype();
        final DeploymentTypeWicketAbstract deployment = new WicketServer();

        if(deploymentTypeFromConfig != null) {
            final DeploymentType deploymentType = DeploymentType.lookup(deploymentTypeFromConfig);
            return !deploymentType.getDeploymentCategory().isProduction()
                    ? prototype
                    : deployment;
        } else {
            return usesDevelopmentConfig()
                    ? prototype
View Full Code Here

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

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

            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

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

        injector = Guice.createInjector(wicketObjectsModule);
    }

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

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

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

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

        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

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

     * 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
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.