A3 Code Note

11/30/2022

#13 Theme Development | singleton design pattern

singleton

It’s used to restrict the instantiation of a class to a single object.
singletonはクラスのインスタンス化を単一のオブジェクトに制限するために使用されます。

Useful when only one object is required across the system.
システム間で必要なオブジェクトが1つだけのときに便利。

Ensures a single class instance and that is global its point of access.
単一クラスのインスタンスを確保し、そのアクセス ポイントをグローバルにします。