diff --git a/src/main/java/org/ntlab/acanthus_server/models/Accounts.java b/src/main/java/org/ntlab/acanthus_server/models/Accounts.java new file mode 100644 index 0000000..2fb9189 --- /dev/null +++ b/src/main/java/org/ntlab/acanthus_server/models/Accounts.java @@ -0,0 +1,30 @@ +package org.ntlab.acanthus_server.models; + +import org.ntlab.acanthus_server.entities.Account; + +import java.util.HashMap; + +/* +* アカウント管理シングルトン +* +*/ +public class Accounts { + private static Accounts _theInstance = null; + private HashMap _accountHashMap = new HashMap<>(); + + //----------------------------------------------------------------- + // インスタンス生成禁止 + private Accounts(){} + + //----------------------------------------------------------------- + // シングルトン取得 + //----------------------------------------------------------------- + public Accounts getInstance(){ + if(_theInstance == null) _theInstance = new Accounts(); + return _theInstance; + } + + //----------------------------------------------------------------- + + +}