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 SummaryNested 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.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> 
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final BindingCollectionA shared, fundamentally empty and immutable version of a binding collection.
- 
Method SummaryModifier 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.HashMapclear, 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.AbstractMapequals, hashCode, toString
- 
Field Details- 
EMPTYA shared, fundamentally empty and immutable version of a binding collection.
 
- 
- 
Method Details- 
createpublic static BindingCollection create(@Nullable PropertyConfigCollection propConfigs, @Nonnull BindingCollection.BindingHarnessMaker factory, @Nonnull LoggerEx log) 
- 
createpublic 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
- 
startuppublic void startup()Starts up all bindings
- 
shutdownpublic void shutdown()Shuts down all bindings
- 
applyConfigChangeApplies a configuration change to the binding collection. Any errors that are encountered are logged as WARN messages.
 
-