add interception of equals, hashCode and toString in the rule proxy

pull/27/head
Mahmoud Ben Hassine 10 years ago
parent b56d58be87
commit 4c33d183e6

@ -57,6 +57,15 @@ class RuleProxy implements InvocationHandler {
actionMethodBean.getMethod().invoke(target);
}
}
if (method.getName().equals("equals")) {
return target.equals(args[0]);
}
if (method.getName().equals("hashCode")) {
return target.hashCode();
}
if (method.getName().equals("toString")) {
return target.toString();
}
if (method.getName().equals("compareTo")) {
Method compareToMethod = getCompareToMethod();
if (compareToMethod != null) {

Loading…
Cancel
Save