Package org.jitterbit.integration.client.plugin.pipeline.xml

Examples of org.jitterbit.integration.client.plugin.pipeline.xml.XmlToManifestTranslator.translate()


        private Iterable<PipelinePluginManifest> parseManifests(PluginAsXml xml) {
            XmlToManifestTranslator translator = new XmlToManifestTranslator();
            List<PipelinePluginManifest> manifests = new ArrayList<PipelinePluginManifest>();
            try {
                KongaListUtils.add(manifests, translator.translate(xml));
            } catch (PluginSpecificationException ex) {
                // This is not a fatal error, and we want to add as many manifests we can,
                // so we just log this error and continue.
                ErrorLog.log(getClass(), "An error occurred while parsing a plugin manifest.", ex);
            }
View Full Code Here


    private PipelinePluginManifest[] readCachedManifestsFromDisk(Object[] ids)
                                        throws DataCacheException, PluginSpecificationException {
        Set<PipelinePluginManifest> manifests = new HashSet<PipelinePluginManifest>();
        XmlToManifestTranslator translator = new XmlToManifestTranslator();
        for (String xml : getXmlStrings(ids)) {
            PipelinePluginManifest[] parsedManifests = translator.translate(xml);
            for (PipelinePluginManifest d : parsedManifests) {
                manifests.add(d);
            }
        }
        return manifests.toArray(new PipelinePluginManifest[manifests.size()]);
View Full Code Here

        private Iterable<PipelinePluginManifest> parseManifests(PluginAsXml xml) {
            XmlToManifestTranslator translator = new XmlToManifestTranslator();
            List<PipelinePluginManifest> manifests = new ArrayList<PipelinePluginManifest>();
            try {
                KongaListUtils.add(manifests, translator.translate(xml));
            } catch (PluginSpecificationException ex) {
                // This is not a fatal error, and we want to check as many manifests we can,
                // so we just log this error and continue.
                // TODO: We should mention this in the result reporting.
                ErrorLog.log(getClass(), "An error occurred while parsing a plugin manifest.", ex);
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.