Initialization-on-demand holder idiom

In software engineering, the initialization-on-demand holder (design pattern) idiom is a lazy-loaded singleton. In all versions of Java, the idiom enables a safe, highly concurrent lazy initialization of static fields with good performance.

Source: Wikipedia — Initialization-on-demand holder idiom (CC BY-SA 4.0)

Initialization-on-demand holder idiom

In software engineering, the initialization-on-demand holder (design pattern) idiom is a lazy-loaded singleton. In all versions of Java, the idiom enables a safe, highly concurrent lazy initialization of static fields with good performance.

Source: Wikipedia "Initialization-on-demand holder idiom" · CC BY-SA 4.0

Share this article: X · Bluesky
Privacy Policy