Class StateMemoizer
java.lang.Object
com.flowingcode.vaadin.addons.xterm.utils.StateMemoizer
- All Implemented Interfaces:
Serializable
Remembers the values passed to all setters. At any time you can reapply
those calls by using
apply().- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStateMemoizer(Object delegate, Class<?>... interfaces) Creates the memoizer. -
Method Summary
-
Constructor Details
-
StateMemoizer
Creates the memoizer. Remember to invoke interface methods viagetProxy()in order for this to work.- Parameters:
delegate- pass-through the setters here.interfaces- used to create the memoizing proxy.
-
-
Method Details
-
getProxy
Setters invoked on this proxy will have the args remembered; the methods invocations will then be passed on todelegate.- Returns:
- the proxy, not null.
-
apply
public void apply()Calls all setters again ondelegate.
-