Class BindingCollection
- java.lang.Object
- 
- java.util.AbstractMap<K,V>
- 
- java.util.HashMap<PropertyKey,AbstractBindingHarness>
- 
- com.inductiveautomation.perspective.gateway.model.BindingCollection
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable,- java.util.Map<PropertyKey,AbstractBindingHarness>
 
 public class BindingCollection extends java.util.HashMap<PropertyKey,AbstractBindingHarness> - See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceBindingCollection.BindingHarnessMakerSince different kinds of objects may use different subclasses of AbstractBindingHarness, this factory is provided to instantiate the actual harness instances required.
 - 
Field SummaryFields Modifier and Type Field Description static BindingCollectionEMPTYA shared, fundamentally empty and immutable version of a binding collection.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyConfigChange(PropertyConfigChange change)Applies 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).java.util.Collection<PropertyReference>resolveReferences()voidshutdown()Shuts down all bindingsvoidstartup()Starts up all bindings- 
Methods 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, values
 
- 
 
- 
- 
- 
Field Detail- 
EMPTYpublic static final BindingCollection EMPTY A shared, fundamentally empty and immutable version of a binding collection.
 
- 
 - 
Method Detail- 
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.
 
 - 
resolveReferencespublic java.util.Collection<PropertyReference> resolveReferences() 
 - 
startuppublic void startup() Starts up all bindings
 - 
shutdownpublic void shutdown() Shuts down all bindings
 - 
applyConfigChangepublic void applyConfigChange(PropertyConfigChange change) Applies a configuration change to the binding collection. Any errors that are encountered are logged as WARN messages.
 
- 
 
-