Project

General

Profile

« Previous | Next » 

Revision 41e516e8

Added by Andreas Müller over 12 years ago

make media cache strategy available to all media classes

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/media/Media.java
184 184
    }
185 185

  
186 186
    private void setMediaCacheStrategy() {
187
        if (getClass() == Media.class){
188
            this.cacheStrategy = MediaDefaultCacheStrategy.NewInstance();
189
        }
190

  
187
//      if (getClass() == Media.class){
188
    	this.cacheStrategy = MediaDefaultCacheStrategy.NewInstance();
189
//      }
191 190
    }
192 191

  
193 192

  

Also available in: Unified diff