hi, i want to invoke a method using reflection. i am having two projects AA and BB. AA has dependency on BB but BB does not have. Now the use case is that i have to call a class of AA from BB. can any one suggest me how to do that.. i have used ReflectionUtils class for the same..
Method getMethod = null;
getMethod = ReflectionUtils.getMethod(new ABC(), "generateId", String.class, String.class);
ReflectionUtils.invokeMethod(getMethod, classObject, "aa", "bb");
This works when i have dependency of BB on AA. I need to let it work when i remove the dependency...