package foundation.state.approve;
|
|
import foundation.dao.preload.Bucket;
|
import foundation.util.MapList;
|
|
public class StepsBucket extends Bucket<Steps> {
|
|
private static StepsBucket instance;
|
private MapList<String, Step> allSteps;
|
|
private StepsBucket() {
|
allSteps = new MapList<String, Step>();
|
}
|
|
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);
|
}
|
|
}
|