Package com.alibaba.citrus.webx.config

Examples of com.alibaba.citrus.webx.config.WebxConfiguration$ComponentsConfig


            prepareServlet();
        } finally {
            System.clearProperty("productionMode");
        }

        WebxConfiguration webxConfiguration = (WebxConfiguration) factory.getBean("webxConfiguration");

        assertTrue(webxConfiguration.isProductionMode());
    }
View Full Code Here


    @BeforeClass
    public static void initWebx() throws Exception {
        prepareServlet();

        WebxConfiguration webxConfiguration = (WebxConfiguration) factory.getBean("webxConfiguration");

        assertFalse(webxConfiguration.isProductionMode());
    }
View Full Code Here

    }

    @Test
    public void getConfiguration_fromComponent() {
        // parent configuration
        WebxConfiguration parentConfiguration = (WebxConfiguration) components.getParentApplicationContext().getBean(
                "webxConfiguration");
        assertNotNull(parentConfiguration);

        // component's configureation
        WebxConfiguration configuration = components.getComponent("app1").getWebxConfiguration();
        assertNotSame(parentConfiguration, configuration);
        assertSame(parentConfiguration, getFieldValue(configuration, "parent", WebxConfiguration.class));
    }
View Full Code Here

        WebApplicationContext parentContext = findParentContext();

        if (parentContext instanceof WebxComponentsContext) {
            components = ((WebxComponentsContext) parentContext).getWebxComponents();

            WebxConfiguration configuration = components.getParentWebxConfiguration();

            if (configuration != null) {
                internalPathPrefix = configuration.getInternalPathPrefix();
                internalPathPrefix = normalizeAbsolutePath(internalPathPrefix, true); // 规格化成/internal
            }
        }

        WebxRootController rootController = components.getWebxRootController();
View Full Code Here

        initInternalRequestHandler();
        initRequestContexts();
    }

    private void initWebxConfiguration() {
        WebxConfiguration webxConfiguration = getWebxConfiguration();

        log.debug("Initializing Webx root context in {} mode, according to <webx-configuration>",
                  webxConfiguration.isProductionMode() ? "production" : "development");
    }
View Full Code Here

        WebApplicationContext parentContext = findParentContext();

        if (parentContext instanceof WebxComponentsContext) {
            components = ((WebxComponentsContext) parentContext).getWebxComponents();

            WebxConfiguration configuration = components.getParentWebxConfiguration();

            if (configuration != null) {
                internalPathPrefix = configuration.getInternalPathPrefix();
                internalPathPrefix = normalizeAbsolutePath(internalPathPrefix, true); // 规格化成/internal
            }
        }

        WebxRootController rootController = components.getWebxRootController();
View Full Code Here

        initInternalRequestHandler();
        initRequestContexts();
    }

    private void initWebxConfiguration() {
        WebxConfiguration webxConfiguration = getWebxConfiguration();

        log.debug("Initializing Webx root context in {} mode, according to <webx-configuration>",
                  webxConfiguration.isProductionMode() ? "production" : "development");
    }
View Full Code Here

    public void onRefreshContext() throws BeansException {
        initWebxConfiguration();
    }

    private void initWebxConfiguration() {
        WebxConfiguration webxConfiguration = getWebxConfiguration();

        log.debug("Initializing WebxComponent \"{}\" in {} mode, according to <webx-configuration>", getComponent()
                .getName(), webxConfiguration.isProductionMode() ? "production" : "development");
    }
View Full Code Here

        initInternalRequestHandler();
        initRequestContexts();
    }

    private void initWebxConfiguration() {
        WebxConfiguration webxConfiguration = getWebxConfiguration();

        log.debug("Initializing Webx root context in {} mode, according to <webx-configuration>",
                  webxConfiguration.isProductionMode() ? "production" : "development");
    }
View Full Code Here

        initInternalRequestHandler();
        initRequestContexts();
    }

    private void initWebxConfiguration() {
        WebxConfiguration webxConfiguration = getWebxConfiguration();

        log.debug("Initializing Webx root context in {} mode, according to <webx-configuration>",
                webxConfiguration.isProductionMode() ? "production" : "development");
    }
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.webx.config.WebxConfiguration$ComponentsConfig

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.