Esempio n. 1
0
 // 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;
 }
Esempio n. 2
0
 // 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);
 }
Esempio n. 3
0
 public CVMan(String tmpDirectory)
 {
     _imageCache = new ImageCache(tmpDirectory);
 }
Esempio n. 4
0
 public CVMan(String tmpDirectory)
 {
     _imageCache = new ImageCache(tmpDirectory);
 }