Commit 090d76dc by s_guodong

支持接口调用

parent 85b6e81e
......@@ -23,7 +23,6 @@ import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.brilliance.mda.runtime.mda.IStream;
import java.io.*;
import java.math.BigDecimal;
......@@ -458,6 +457,13 @@ public class MdaUtils {
}
public static Object invoke(Object object, String methodName, Object... args) {
if (object instanceof String) {
String s = (String) object;
if (s.contains("bean:")) {
String beanName = s.replace("bean:", "").trim();
object = MdaEnv.getBean(beanName);
}
}
return invoke(object, methodName, null, args);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment