// Yes singleton anti-pattern internal static ImageCache getImageCache(String tempPathRoot) { if (_imageCache == null) { _imageCache = new ImageCache(tempPathRoot); _imageCachePathRoot = tempPathRoot; } if (_imageCachePathRoot != tempPathRoot) throw new ApplicationException("Programming Error"); return _imageCache; }
// Yes singleton anti-pattern internal static ImageCache getImageCache(String tempPathRoot) { if (_imageCache == null) { _imageCache = new ImageCache(tempPathRoot); _imageCachePathRoot = tempPathRoot; } if (_imageCachePathRoot != tempPathRoot) { throw new ApplicationException("Programming Error"); } return(_imageCache); }
public CVMan(String tmpDirectory) { _imageCache = new ImageCache(tmpDirectory); }