Package com.volantis.xml.pipeline.sax.operations.transform

Examples of com.volantis.xml.pipeline.sax.operations.transform.DefaultTransformConfiguration


        ruleConfigurator = createRuleConfigurator();
    }

    // javadoc inherited
    public TransformConfiguration createTransformConfiguration() {
        return new DefaultTransformConfiguration();
    }
View Full Code Here


        ruleConfigurator = createRuleConfigurator();
    }

    // javadoc inherited
    public TransformConfiguration createTransformConfiguration() {
        return new DefaultTransformConfiguration();
    }
View Full Code Here

        XMLPipelineContext pipelineContext =
                pipelineFactory.createPipelineContext(
                        createPipelineConfiguration(),
                        createRootEnvironmentInteraction());

        DefaultTransformConfiguration config = (DefaultTransformConfiguration)
                pipelineContext.getPipelineConfiguration().
                retrieveConfiguration(TransformConfiguration.class);

        config.setTemplateCompilationRequired(true);

        doInContextTest(pipelineContext,
               "CompilableSimpleTransformationTestCase.input.xml",
               "SimpleTransformTestCase.expected.xml");
    }
View Full Code Here

        XMLPipelineContext pipelineContext =
                pipelineFactory.createPipelineContext(
                        createPipelineConfiguration(),
                        createRootEnvironmentInteraction());

        DefaultTransformConfiguration config = (DefaultTransformConfiguration)
                pipelineContext.getPipelineConfiguration().
                retrieveConfiguration(TransformConfiguration.class);

        config.setTemplateCompilationRequired(true);

        doInContextTest(pipelineContext,
               "CompilableSimpleTransformationTestCase.input.xml",
               "SimpleTransformTestCase.expected.xml");
    }
View Full Code Here

        XMLPipelineContext pipelineContext =
                pipelineFactory.createPipelineContext(
                        createPipelineConfiguration(),
                        createRootEnvironmentInteraction());

        DefaultTransformConfiguration config = (DefaultTransformConfiguration)
                pipelineContext.getPipelineConfiguration().
                retrieveConfiguration(TransformConfiguration.class);

        config.setTemplateCompilationRequired(true);

        doInContextTest(pipelineContext,
               "CompilableNestedTransformationsTestCase.input.xml",
               "NestedTransformationsTestCase.expected.xml");
    }
View Full Code Here

        doInContextTest(pipelineContext,
               "CompilableNestedTransformationsTestCase.input.xml",
               "NestedTransformationsTestCase.expected.xml");

        DefaultTransformConfiguration config = (DefaultTransformConfiguration)
                pipeline.getPipelineContext().getPipelineConfiguration().
                retrieveConfiguration(TransformConfiguration.class);

        // Test the defaults
        assertFalse("No cache specified as default",
                config.isTemplateCacheRequired());
        assertNull("Should be no cache available", config.getTemplateCache());

        // Enabling caching
        config.setTemplateCacheRequired(true);
        assertNotNull("Cache should be created", config.getTemplateCache());

        // Re-run through the pipeline
        doInContextTest(pipelineContext,
                "CompilableNestedTransformationsTestCase.input.xml",
                "NestedTransformationsTestCase.expected.xml");

        // Check for something in the cache
        GenericCache cache = (GenericCache) config.getTemplateCache();
        assertFalse("Should be something in the cache", cache.isEmpty());

    }
View Full Code Here

        final XMLPipelineContext pipelineContext =
                pipelineFactory.createPipelineContext(
                        createPipelineConfiguration(),
                        createRootEnvironmentInteraction());

        DefaultTransformConfiguration config = (DefaultTransformConfiguration)
                pipelineContext.getPipelineConfiguration().
                retrieveConfiguration(TransformConfiguration.class);

        config.setTemplateCacheRequired(true);
        config.setTemplateCompilationRequired(true);

        for (int i=0; i<50; i++) {
            Thread thread = new Thread() {
                public void run() {
                    try {
View Full Code Here

    /**
     * Factory method to create the class being tested
     * @return TransformConfigurationAdapter
     */
    protected TransformConfiguration createTestable() {
        return new DefaultTransformConfiguration();
    }
View Full Code Here


    private TransformConfiguration createTransformConfig() {

        TransformConfiguration config =
                new DefaultTransformConfiguration();

        config.setTemplateCacheRequired(false);
        config.setTemplateCompilationRequired(false);

        return config;
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.operations.transform.DefaultTransformConfiguration

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.