Package org.g4studio.core.resource

Examples of org.g4studio.core.resource.Resource


     
      ResourceLoader loader = null;
      isCache = resourceConfig.isCache();
      loader = loaderMapping.mapping(resourceConfig.getLoaderName());
 
      Resource result = cacheManager.get(pUri);
   
      if ( result != null ){ 
        if ( checkModified == false ){//不检查修改
          return result;
        }
        //检查资源是否已修改
        long lastModified = result.getLastModified();
        long newModified = loader.getLastModified(pUri);
        if ( newModified > lastModified){
          Object keyLock = null;
          synchronized( LOCK ){
            keyLock = getKeyLock(pUri);
View Full Code Here


     * @param pLoader
     * @param pUri
     * @return
     */
    private Resource loadResource(ResourceLoader pLoader , String pUri){
      Resource res = null;
      ResourceConfig resourceConfig = resourceConfigMapping.mapping(pUri);
      if ( resourceConfig == null ){
        res = pLoader.load(pUri);
        return res;
      } else {
View Full Code Here

TOP

Related Classes of org.g4studio.core.resource.Resource

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.