Interface BindingContext
- All Superinterfaces:
AuditingContext, LoggingContext
- All Known Implementing Classes:
AbstractBindingHarness, ElementBindingHarness
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull Optional<AuditProfile> default Stringdefault ExecutorServiceShortcut to get to the shared executor.default MutabilityModedefault ScheduledExecutorServicedefault SessionvoidTakes the most recently published value from the binding and runs it through the transforms or delivers it to the target if there are no transforms.default voidpublish(QualifiedValue value) voidpublish(QualifiedValue value, boolean pending) Called from the binding when it has a value to push onto the target property ( or through its transforms )Methods inherited from interface AuditingContext
audit, getAuditSnapshotMethods inherited from interface LoggingContext
getLogger, getMdcParent, mdc, mdcSetup, mdcSetupTree, mdcTeardown, mdcTeardownTree, mdcWrap
-
Method Details
-
getTargetElement
PerspectiveElement getTargetElement() -
getTargetProperty
PropertyKey getTargetProperty() -
publish
-
publish
Called from the binding when it has a value to push onto the target property ( or through its transforms )- Parameters:
pending- true if this value is temporary and will be replaced (within a reasonable span of time) with a new value
-
processPublishedValue
void processPublishedValue()Takes the most recently published value from the binding and runs it through the transforms or delivers it to the target if there are no transforms. -
getLastValue
QualifiedValue getLastValue() -
getSession
-
getExecutorService
Shortcut to get to the shared executor. SeePerspectiveContext.getExecutorService() -
getScheduler
-
getAuditProfile
- Specified by:
getAuditProfilein interfaceAuditingContext- Returns:
- an
Optionalcontaining theAuditProfilefor this context or an emptyOptionalif no audit profile is set
-
getMutabilityMode
- Returns:
- the mutability mode of the current session. This will be "READ_WRITE" except for
designer sessions, for which it will match the designer's current gateway comm mode
setting. If you need to be notified when this changes, you must listen on the
CommonContext.getEventBus()for aSessionMutabilityChangeEvent
-
getDiagnosticPath
-