io.github.ncasaux.camelplantuml.utils.RouteUtils Maven / Gradle / Ivy
package io.github.ncasaux.camelplantuml.utils;
import io.github.ncasaux.camelplantuml.model.RouteInfo;
import org.apache.commons.codec.digest.DigestUtils;
import org.slf4j.Logger;
import java.util.HashMap;
public class RouteUtils {
public static void addRouteInfo(HashMap routesInfo,
String routeId,
RouteInfo routeInfo,
Logger LOGGER) {
routeInfo.setDiagramElementId("route_".concat(DigestUtils.md5Hex(routeId)));
routesInfo.put(routeId, routeInfo);
LOGGER.info("{} and routeId \"{}\" added to the map of routes", routeInfo, routeId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy