/** * */ package at.gv.egiz.pdfas.framework; /** * The DataManager is a mediator for all components that need to allocate large * data elements. * *
* The DataManager uses a certain DataStrategy to perform the actual tasks. The * strategy may be different in different environments. E.g. The commandline may * implement a strategy to keep all data in memory, whereas the web might * implement one that puts as many data onto the disk as possible to save * memory. *
* * @author wprinz * */ public class DataManager { protected static DataStrategy dataStrategy = null; public static void initialize(DataStrategy ds) { dataStrategy = ds; } public static DataStrategy getDataStrategy() { return dataStrategy; } }