package foundation.state.approve; import foundation.dao.preload.Bucket; import foundation.util.MapList; public class StepsBucket extends Bucket { private static StepsBucket instance; private MapList allSteps; private StepsBucket() { allSteps = new MapList(); } public static synchronized StepsBucket getInstance() { if (instance == null) { instance = new StepsBucket(); } return instance; } public Step getGlobalStep(String stepId) { return allSteps.get(stepId); } public void loadGlobalStep(Step step) { allSteps.add(step.getId(), step); } }