1 package cn.home1.oss.lib.common.msginterpolate; 2 3 import java.util.Map; 4 5 public interface MessageInterpolator { 6 7 /** 8 * Interpolates the message template using the given variables. 9 * 10 * @param template The message to interpolate. 11 * @param variables Map of variables that will be accessible for the template. 12 * @return An interpolated message. 13 */ 14 String interpolate(String template, Map<String, Object> variables); 15 }