Closed nbrugger-tgm closed 3 years ago
The changes are now implemented.
ProxySubject
(markup interface, no methods needed)ReactiveProxy.createProxy
ReactiveProxy.create
When binding a proxy subject (properly created) to a UI changes in the UI don't reflect in the object/subject
this is due to a wong condition in ReactiveProxy
if (thisMethod.getDeclaringClass().equals(ProxySubject.class)) {
return this.forwardProxySubjectCallToMyself(thisMethod, args);
}
this will allways return false
as the declaring class is still Reactable
The bug was reporduced and is now covered by a testcase.
The previous explanation was only partial right.
if (thisMethod.getDeclaringClass().equals(ProxySubject.class)) {
return this.forwardProxySubjectCallToMyself(thisMethod, args);
}
worked for the most part as only one method slips through.
This is due to ReactiveSubject
overwriting all methods except one. Therefore mentioned method (set(Map<String,Object>)
) didn't activated the if statement
the fix will be shipped version 3.1.0b2
In order to use generic and automatic reactive Objects you need to use
ReactiveProxy<M>
.The problem is that you always have to use
ReactiveProxy<MyObject>
instead ofMyObject
, which is a little inconvenient