I would like to make an indirect call to a java method, which name is specified in a .properties
file.
How can I do that ?
I would like to make an indirect call to a java method, which name is specified in a .properties
file.
How can I do that ?
Object object = // .....
try(is = propertiesInputStream()) {
Properties p = new Properties();
p.load(is);
Method m = org.springframework.util.ReflectionUtils.findMethod(object.getClass(), p.get("method"));
Object result = org.springframework.util.ReflectionUtils.invokeMethod(m, object);
}