package foundation.data.rule.exists; import foundation.dao.preload.Bucket; public class ExistsBucket extends Bucket { private static ExistsBucket instance; public static synchronized ExistsBucket getInstance() { if (instance == null) { instance = new ExistsBucket(); } return instance; } public void loadOneRule(ExistsRule rule) { String dataName = rule.getDataName(); ExistsRules rules = get(dataName); if (rules == null) { rules = new ExistsRules(dataName); loadOne(dataName, rules); } rules.loadOne(rule.getId(), rule); } }