Class ElementBindingHarness
java.lang.Object
com.inductiveautomation.perspective.gateway.model.AbstractBindingHarness
com.inductiveautomation.perspective.gateway.model.ElementBindingHarness
- All Implemented Interfaces:
AuditingContext
,BindingContext
,LoggingContext
-
Field Summary
Fields inherited from class com.inductiveautomation.perspective.gateway.model.AbstractBindingHarness
binding, shutdown, targetComponent, targetProperty, transforms, typeCode
-
Constructor Summary
ConstructorsConstructorDescriptionElementBindingHarness
(PerspectiveElement targetComponent, PropertyKey target, BindingConfig config) -
Method Summary
Modifier and TypeMethodDescriptionnewFactory
(PerspectiveElement element) protected Runnable
subscribeToTarget
(Consumer<PropertyTreeChangeEvent> callback) Attempt to subscribe to the target property.toString()
protected void
writeToTarget
(QualifiedValue value) Write the given value to the target property.Methods inherited from class com.inductiveautomation.perspective.gateway.model.AbstractBindingHarness
getAuditSnapshot, getInitialValueFuture, getLastValue, getLogger, getMdcParent, getTargetElement, getTargetProperty, mdcSetup, mdcTeardown, onBindingProducedValue, onTransformProducedValue, processPublishedValue, publish, refresh, resolveReferences, shutdown, startup
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.AuditingContext
audit
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.BindingContext
getAuditProfile, getDiagnosticPath, getExecutorService, getMutabilityMode, getScheduler, getSession, publish
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.LoggingContext
mdc, mdcSetupTree, mdcTeardownTree, mdcWrap
-
Constructor Details
-
ElementBindingHarness
public ElementBindingHarness(PerspectiveElement targetComponent, PropertyKey target, BindingConfig config)
-
-
Method Details
-
newFactory
-
toString
-
subscribeToTarget
Description copied from class:AbstractBindingHarness
Attempt to subscribe to the target property.- Specified by:
subscribeToTarget
in classAbstractBindingHarness
- Parameters:
callback
- When the target property changes, call this consumer and give it a way to fetch the new value- Returns:
- A runnable which when called will tear down the subscription. May be null if the subscription wasn't able to be established.
-
writeToTarget
Description copied from class:AbstractBindingHarness
Write the given value to the target property.- Specified by:
writeToTarget
in classAbstractBindingHarness
-