Class AbstractMapTransform
- java.lang.Object
-
- com.inductiveautomation.perspective.gateway.binding.transforms.AbstractSynchronousTransform
-
- com.inductiveautomation.perspective.gateway.binding.transforms.map.AbstractMapTransform
-
- All Implemented Interfaces:
Transform
public abstract class AbstractMapTransform extends AbstractSynchronousTransform
Base class for a Map Transform. Handles thread-safe scheduling of itsMappingCollection's
updates and is the liaison between theBindingContext
and the MappingCollection.
-
-
Field Summary
Fields Modifier and Type Field Description protected BindingContext
context
protected MappingElement
fallback
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
shutdown()
Shutdown hook called by theAbstractBindingHarness
.void
startup()
Startup hook called by theAbstractBindingHarness
.protected QualifiedValue
synchronousTransformInternal(QualifiedValue value)
Perform a blocking transformation on aQualifiedValue
, returning the transformed value as a QualifiedValue.-
Methods inherited from class com.inductiveautomation.perspective.gateway.binding.transforms.AbstractSynchronousTransform
transform
-
-
-
-
Field Detail
-
context
protected final BindingContext context
-
fallback
protected final MappingElement fallback
-
-
Method Detail
-
startup
public void startup()
Description copied from interface:Transform
Startup hook called by theAbstractBindingHarness
. This method will run on theSessionContext's
ExecutionQueue
thread. The default implementation is a no-op.
-
shutdown
public void shutdown()
Description copied from interface:Transform
Shutdown hook called by theAbstractBindingHarness
. This method will run on theSessionContext's
ExecutionQueue
thread. The default implementation is a no-op.
-
synchronousTransformInternal
protected QualifiedValue synchronousTransformInternal(@Nonnull QualifiedValue value)
Description copied from class:AbstractSynchronousTransform
Perform a blocking transformation on aQualifiedValue
, returning the transformed value as a QualifiedValue.- Specified by:
synchronousTransformInternal
in classAbstractSynchronousTransform
- Parameters:
value
- The input value to transform. The value will never be null.- Returns:
- The transformed value.
-
-