Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
V.Next
-
None
-
None
Description
A control's resources are typically managed by the control listening for 'onAcquire' / 'onRelease' events. The duration between an onAcquire / onRelease may be much longer than necessary depending on the project's design.
For example:
Control Client:
public void invokeSomeControls() {
ctrl1.invoke() /* ctrl1 acquires resources */
.
.
.
ctrl2.invoke() /* ctrl2 acquires resources */
.
.
.
} /* ctrl1 and ctrl2 release resources */
It would be nice to come up with a solution that allows the developer to specify a shorter onAcquire/onRelease period, perhaps even just for the duration of a method invocation of a control.