1 var Class = require("../../mootools/mootools-node.js").Class;
  2 
  3 /**
  4  * @class Interface for classes that implements resource caching of any kind
  5  * @requires Class
  6  */
  7 var IResourceCache = function(){
  8 
  9     /**
 10      * @property {Object} _configuration
 11      * @private
 12      */
 13     this._configuration = null;
 14 
 15     /** @ignore */
 16     this.initialize = function(configuration){
 17         this._configuration = configuration;
 18     };
 19 
 20     /**
 21      * returns path to resources
 22      * @returns {String}
 23      */
 24     this.getResourcePath = function(){
 25         return this._configuration.resourcePath;
 26     };
 27 
 28     /**
 29      * returns exclude resource regexp pattern
 30      * @returns {String}
 31      */
 32     this.getExcludePattern = function(){
 33         return this._configuration.excludePattern;
 34     };
 35 
 36     /**
 37      * abstract method. you need to override this method in your subclass
 38      * @throws {Exception} Not implemented
 39      */
 40     this.cache = function(){
 41         throw "Not Implemented. You must override this method";
 42     };
 43 };
 44 
 45 IResourceCache = new Class(new IResourceCache());
 46 exports.IResourceCache = IResourceCache;