Package net.sf.pipet.api

Examples of net.sf.pipet.api.CachePolicy


    return cache_policies.get(name);
  }
 
  public CachePolicy getDefaultCachePolicy()
  {
    CachePolicy cp = root_module.getCachePolicy();
    return cp==null ? Cache.NO_CACHE : cp;
  }
View Full Code Here


    this.auth = auth;
  }

  public void setDefaultCachePolicy(String name)
  {
    CachePolicy cp = cache_policies.get(name);
    if (cp != null)
    {
      root_module.setCachePolicy(cp);
      changed();
    }
View Full Code Here

     
      String policyname = getAttribute((Element)child, "policy");
      if (policyname == null)
        continue;
     
      CachePolicy policy = cfg.getCachePolicy(policyname);
      if (policy == null)
        throw new InvalidConfigurationException("Reference to unknown cache policy: "+policyname);
     
      return policy;
    }
View Full Code Here

   
    String iface = getAttribute(node, "interface");
    if (iface == null)
      throw new InvalidConfigurationException("Cache policy has no interface.");
   
    CachePolicy cp = Cache.createCachePolicy(name, iface);
    if (cp == null)
      throw new InvalidConfigurationException("Cache policy interface not supported: "+iface);
   
    return cp;
  }
View Full Code Here

TOP

Related Classes of net.sf.pipet.api.CachePolicy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.