Class BindingCollection

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  BindingCollection.BindingHarnessMaker
      Since 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

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static BindingCollection EMPTY
      A shared, fundamentally empty and immutable version of a binding collection.
    • Field Detail

      • EMPTY

        public static final BindingCollection EMPTY
        A shared, fundamentally empty and immutable version of a binding collection.
    • Method Detail

      • 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.
      • startup

        public void startup()
        Starts up all bindings
      • shutdown

        public void shutdown()
        Shuts down all bindings
      • applyConfigChange

        public void applyConfigChange​(PropertyConfigChange change)
        Applies a configuration change to the binding collection. Any errors that are encountered are logged as WARN messages.