Package org.fusesource.ide.commons.camel.tools

Examples of org.fusesource.ide.commons.camel.tools.RouteXml.unmarshal()


  @Override
  public RouteContainer loadRoutes(File file) {
    try {
      RouteXml helper = createXmlHelper();
      Activator.getLogger().debug("Loading file: " + file);
      XmlModel model = helper.unmarshal(file);
      if (model.getRouteDefinitionList().size()<1) noRoutesOnLoad = true;
      return toContainer(model);
    } catch (Exception e) {
      Activator.getLogger().error("Failed to load Camel mode: " + e, e);
      throw new RuntimeException(e);
View Full Code Here


  @Override
  public RouteContainer loadRoutesFromText(String text) {
    try {
      RouteXml helper = createXmlHelper();
      XmlModel model = helper.unmarshal(text);
      if (model.getRouteDefinitionList().size()<1) noRoutesOnLoad = true;
      return toContainer(model);
    } catch (Exception e) {
      Activator.getLogger().error("Failed to load Camel mode: " + e, e);
      throw new RuntimeException(e);
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.