Class ElementBindingHarness
- java.lang.Object
- 
- com.inductiveautomation.perspective.gateway.model.AbstractBindingHarness
- 
- com.inductiveautomation.perspective.gateway.model.ElementBindingHarness
 
 
- 
- All Implemented Interfaces:
- AuditingContext,- BindingContext,- LoggingContext
 
 public class ElementBindingHarness extends AbstractBindingHarness 
- 
- 
Field Summary- 
Fields inherited from class com.inductiveautomation.perspective.gateway.model.AbstractBindingHarnessbinding, shutdown, targetComponent, targetProperty, transforms, typeCode
 
- 
 - 
Constructor SummaryConstructors Constructor Description ElementBindingHarness(PerspectiveElement targetComponent, PropertyKey target, BindingConfig config)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BindingCollection.BindingHarnessMakernewFactory(PerspectiveElement element)protected java.lang.RunnablesubscribeToTarget(java.util.function.Consumer<PropertyTreeChangeEvent> callback)Attempt to subscribe to the target property.java.lang.StringtoString()protected voidwriteToTarget(QualifiedValue value)Write the given value to the target property.- 
Methods inherited from class com.inductiveautomation.perspective.gateway.model.AbstractBindingHarnessgetAuditSnapshot, getInitialValueFuture, getLastValue, getLogger, getMdcParent, getTargetElement, getTargetProperty, mdcSetup, mdcTeardown, onBindingProducedValue, onTransformProducedValue, processPublishedValue, publish, refresh, resolveReferences, shutdown, startup
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.AuditingContextaudit
 - 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.BindingContextgetAuditProfile, getExecutorService, getScheduler, getSession, publish
 - 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.LoggingContextmdc, mdcSetupTree, mdcTeardownTree, mdcWrap
 
- 
 
- 
- 
- 
Constructor Detail- 
ElementBindingHarnesspublic ElementBindingHarness(PerspectiveElement targetComponent, PropertyKey target, BindingConfig config) 
 
- 
 - 
Method Detail- 
newFactorypublic static BindingCollection.BindingHarnessMaker newFactory(PerspectiveElement element) 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
subscribeToTarget@Nullable protected java.lang.Runnable subscribeToTarget(java.util.function.Consumer<PropertyTreeChangeEvent> callback) Description copied from class:AbstractBindingHarnessAttempt to subscribe to the target property.- Specified by:
- subscribeToTargetin class- AbstractBindingHarness
- 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.
 
 - 
writeToTargetprotected void writeToTarget(QualifiedValue value) Description copied from class:AbstractBindingHarnessWrite the given value to the target property.- Specified by:
- writeToTargetin class- AbstractBindingHarness
 
 
- 
 
-