|
|
@@ -23,16 +23,16 @@ public final class ProxyDelegator {
|
|
|
}
|
|
|
|
|
|
|
|
|
- public static <T> T create(T object, BiFunction<Object,Object> function) {
|
|
|
- return (T)Enhancer.create(object.getClass(), new Delegator(object, function));
|
|
|
+ public static <T> T paramWrapper(T object, BiFunction<Object,Object> function) {
|
|
|
+ return (T)Enhancer.create(object.getClass(), new ParamWrapper(object, function));
|
|
|
}
|
|
|
|
|
|
- private static class Delegator implements MethodInterceptor {
|
|
|
+ private static class ParamWrapper implements MethodInterceptor {
|
|
|
|
|
|
private final Object delegator;
|
|
|
private final BiFunction<Object, Object> function;
|
|
|
|
|
|
- public Delegator(Object delegator, BiFunction<Object, Object> function) {
|
|
|
+ public ParamWrapper(Object delegator, BiFunction<Object, Object> function) {
|
|
|
this.delegator = delegator;
|
|
|
this.function = function;
|
|
|
}
|