Class BindingCollection
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<PropertyKey,AbstractBindingHarness>
com.inductiveautomation.perspective.gateway.model.BindingCollection
- All Implemented Interfaces:
Serializable,Cloneable,Map<PropertyKey,AbstractBindingHarness>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSince different kinds of objects may use different subclasses of AbstractBindingHarness, this factory is provided to instantiate the actual harness instances required.Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BindingCollectionA shared, fundamentally empty and immutable version of a binding collection. -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies a configuration change to the binding collection.static BindingCollectioncreate(PropertyConfigCollection propConfigs, BindingCollection.BindingHarnessMaker factory, LoggerEx log) static BindingCollectioncreate(PropertyConfigCollection propConfigs, BindingCollection.BindingHarnessMaker factory, LoggerEx log, boolean isDesigner) Creates a BindingCollection from the given collection of property config objects, (which may be null).voidshutdown()Shuts down all bindingsvoidstartup()Starts up all bindingsMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
EMPTY
A shared, fundamentally empty and immutable version of a binding collection.
-
-
Method Details
-
create
public static BindingCollection create(@Nullable PropertyConfigCollection propConfigs, @Nonnull BindingCollection.BindingHarnessMaker factory, @Nonnull LoggerEx log) -
create
public static BindingCollection create(@Nullable PropertyConfigCollection propConfigs, @Nonnull BindingCollection.BindingHarnessMaker factory, @Nonnull LoggerEx log, boolean isDesigner) Creates a BindingCollection from the given collection of property config objects, (which may be null). Will only create bindings that are configured to be enabled.- Parameters:
isDesigner- hint to the creation process that lets it optimize for client components with zero bindings, so they can share an immutable, empty map.
-
resolveReferences
-
startup
public void startup()Starts up all bindings -
shutdown
public void shutdown()Shuts down all bindings -
applyConfigChange
Applies a configuration change to the binding collection. Any errors that are encountered are logged as WARN messages.
-