encyclopegia.org

Binding properties pattern

The binding properties pattern is combining multiple observers to force properties in different objects to be synchronized or coordinated in some way. This pattern was first described as a technique by Victor Porton. This pattern comes under concurrency patterns.

The binding properties pattern is combining multiple observers to force properties in different objects to be synchronized or coordinated in some way. This pattern was first described as a technique by Victor Porton. This pattern comes under concurrency patterns. ==Comparison with aspect-oriented implementation== As an alternative to the aspect-oriented implementation of mutual properties, property binding can be proposed. In LibPropC++ C++ library it is implemented too. Some weakness in the LibPropC++ (with property binding): Its use is not transparent as it requires to be declared necessary object attributes as properties and appropriate accessor methods must be provided Binding of attributes in LibPropC++ is not designed to replace method calls The library does not maintain an interaction history. ==Implementation== There are two types of binding. One-way binding should be applied when one of the properties is read-only. In other cases, two-way binding must be applied. Infinite loops can be eliminated by blocking the signal, or comparing the assigned value with the property value before assignment, or eliminating unnecessary assignments. Binding properties of different types can be achieved through type conversions. Binding properties with transformations can be achieved through reducing the transformation function to the problem of binding properties, and the function can be imaginary consider as Type Conversions. ==Resulting context== Properties are being kept synchronized automatically. Between library calls they always have the values expressed by the EqualityConstraints. ==Deficiencies== Property changes watching mechanism acquires some resources. ==Sample code== Code sketch for one-way binding may look like as follows: import java.util.Map; import javafx.util.Pair; void bindMultipleOneWay(Pair src, Map dst) { for (Map.Entry pair : dst.entrySet()) { bindPropertiesOneWay(src.getKey(), src.getValue(), pair.getKey(), pair.getValue()); } } Two-way binding can be expressed as follows: void bindTwoWay(X prop1, X prop2) { bind(prop1, prop2); bind(prop2, prop1); } Accomplishing the binding (i.e. connecting the property change notification in an event handler) may be like as follows: void onPropertyChange(X src, X dst) { blockSignal(src, onPropertyChange); dst = src; unblockSignal(src, onPropertyChange); } ==See also== Software design pattern ==References==

References

No reference rows published for this article.

Cite this article

MLA

"Binding properties pattern." encyclopegia.org, 2026, https://encyclopegia.org/wiki/binding-properties-pattern. Accessed 24 November 2026.

Chicago

"Binding properties pattern." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/binding-properties-pattern.

APA

encyclopegia.org. (2026). Binding properties pattern. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/binding-properties-pattern

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Twin pattern

enwiki · references available

Blackboard (design pattern)

enwiki · references available

Composite entity pattern

enwiki · references available

Intercepting filter pattern

enwiki · references available

Composition filters

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1368546286 · 0.5 · snapshot enwiki-001368546286

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.