Closed nbrugger-tgm closed 3 years ago
@ReactTo
should take theese options
NOTHING
- while useless on first glance in complex structure it maybe makes senseANNOTATED
- just annotated methodsSETTER
- self explanatoryALL
- self explanatoryDue to #39 #44 #38 and #45 the creation process of proxies changed and therefore a new approach is needed!
We will go with the following approach
Owned classes
public class Person { @Reactive public updateHealthStatus(ECard card){ .... } @Reactive public setAge(int age){ ... } }
ProxyCreator creator = ProxyCreator.besideOrigin(); creator.setStrategy(ANNOTATIONS); ReactiveProxy<Person> person = creator.createProxy(new Person());
Or for 3rd party classes
ProxyCreator creator = ProxyCreator.custom(getClass());//custom is the best for 3rd party creator.setStrategy(SETTERS); //or creator.setStrategy(byName("update","erase")); ReactiveProxy<Matrix> person = creator.create(new Matrix());
Released in v4.0.0b8
The way to specify custom methods to react to is a little cumbersome and error prone.
Before
After
Alernative