Package org.switchyard.transform.internal

Examples of org.switchyard.transform.internal.TransformerRegistryLoader


        final DefaultCamelContext camelContext = new DefaultCamelContext();
        _extractor = new CamelTypeConverterExtractor(camelContext);
        _extractor.init();
       
        _transformerRegistry = new BaseTransformerRegistry();
        new TransformerRegistryLoader(_transformerRegistry).loadOOTBTransforms();
    }
View Full Code Here


            }
        }
       
        _serviceDomain = appServiceDomain;
        _serviceDomain.setProperty(CLASSLOADER_PROPERTY, Classes.getTCCL());
        _transformerRegistryLoader = new TransformerRegistryLoader(appServiceDomain);
        _transformerRegistryLoader.loadOOTBTransforms();
       
        _validatorRegistryLoader = new ValidatorRegistryLoader(appServiceDomain.getValidatorRegistry());
        _validatorRegistryLoader.loadOOTBValidates();
       
View Full Code Here

    }

    @Test
    public void transformerClassNotFound() throws Exception {
        SwitchYardModel switchyard = _puller.pull(MISSING_TRANSFORM_XML, getClass());
        TransformerRegistryLoader loader = new TransformerRegistryLoader(new BaseTransformerRegistry());
        try {
            loader.newTransformers(switchyard.getTransforms().getTransforms().get(0));
            // the above should have resulted in an exception
            Assert.fail("missing transformer class should result in SwitchYardException");
        } catch (SwitchYardException syEx) {
            // expected outcome
            return;
View Full Code Here

        TransformModel transformModel = transforms.getTransforms().get(0);

        if (transformModel == null) {
            Assert.fail("No smooks config.");
        }
        TransformerRegistryLoader trl = new TransformerRegistryLoader(new BaseTransformerRegistry());
        return trl.newTransformer(transformModel);
    }
View Full Code Here

  private final static String JSON_USER_LIST = "[{\"name\":{\"first\":\"Joe\",\"last\":\"Sixpack\"},\"gender\":\"MALE\",\"verified\":false}]";
    private TransformerRegistry xformReg;

    public JSONTransformerTest() {
        xformReg = new BaseTransformerRegistry();
        new TransformerRegistryLoader(xformReg).loadOOTBTransforms();
    }
View Full Code Here

            + "</tr><tr><td>Drools</td><td>http://www.jboss.org/drools</td></tr><tr><td>JBoss Tools</td><td>http://www.jboss.org/tools</td>"
            + "</tr></table></body></index>";

    public XsltTransformerTest() {
        xformReg = new BaseTransformerRegistry();
        new TransformerRegistryLoader(xformReg).loadOOTBTransforms();
    }
View Full Code Here

        model.setXsltFile("org/switchyard/transform/xslt/internal/topics.xslt");
        model.setFrom(new QName("A"));
        model.setTo(new QName("B"));

        TransformerRegistryLoader trl = new TransformerRegistryLoader(new BaseTransformerRegistry());
        Transformer<?,?> transformer = trl.newTransformer(model);

        Assert.assertTrue(transformer instanceof XsltTransformer);
    }
View Full Code Here

    private BaseTransformerRegistry registry;

    public OutOfTheBoxTransformersLoadingTest() {
        registry = new BaseTransformerRegistry();
        new TransformerRegistryLoader(registry).loadOOTBTransforms();
    }
View Full Code Here

    private BaseTransformerRegistry _transformerRegistry;

    @Before
    public void setUp() {
        _transformerRegistry = new BaseTransformerRegistry();
        new TransformerRegistryLoader(_transformerRegistry).loadOOTBTransforms();
        XMLUnit.setIgnoreWhitespace(true);
    }
View Full Code Here

TOP

Related Classes of org.switchyard.transform.internal.TransformerRegistryLoader

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.