SyncControl

Controls the way that a (synchronous) wrapper works.

API

SyncControl.java
class SyncControl {
  SyncControl control()
  SyncControl withSkipRules()     (1)
  SyncControl with(ExceptionHandler exceptionHandler)     (2)
  SyncControl withExecute()     (3)
  SyncControl withNoExecute()     (4)
  ImmutableEnumSet<ExecutionMode> getExecutionModes()     (5)
}
1 withSkipRules()

Skip checking business rules (hide/disable/validate) before executing the underlying property or action

2 with(ExceptionHandler)

How to handle exceptions if they occur, using the provided ExceptionHandler .

3 withExecute()

Explicitly set the action to be executed.

4 withNoExecute()

Explicitly set the action to not be executed, in other words a "dry run".

5 getExecutionModes()

Not API.

Members

withSkipRules()

Skip checking business rules (hide/disable/validate) before executing the underlying property or action

with(ExceptionHandler)

How to handle exceptions if they occur, using the provided ExceptionHandler .

The default behaviour is to rethrow the exception.

withExecute()

Explicitly set the action to be executed.

withNoExecute()

Explicitly set the action to not be executed, in other words a "dry run".

getExecutionModes()

Not API.