|
|
|
@ -65,13 +65,8 @@ public class RuleProxy implements InvocationHandler {
|
|
|
|
|
private org.jeasy.rules.annotation.Rule annotation;
|
|
|
|
|
|
|
|
|
|
private static final RuleDefinitionValidator ruleDefinitionValidator = new RuleDefinitionValidator();
|
|
|
|
|
|
|
|
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(RuleProxy.class);
|
|
|
|
|
|
|
|
|
|
private RuleProxy(final Object target) {
|
|
|
|
|
this.target = target;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Makes the rule object implement the {@link Rule} interface.
|
|
|
|
|
*
|
|
|
|
@ -92,6 +87,10 @@ public class RuleProxy implements InvocationHandler {
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private RuleProxy(final Object target) {
|
|
|
|
|
this.target = target;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {
|
|
|
|
|
String methodName = method.getName();
|
|
|
|
|