Package org.g4studio.core.resource

Examples of org.g4studio.core.resource.ResourceLoader


        return null;
      }
     
     
     
      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


    logger.debug("获取名字为:" + pName + "的资源Loader.");
    String handlerName = pName.toLowerCase();
    if (loaders.containsKey(handlerName) == false) {
      throw new ResourceException("不存在名为:" + pName + "的资源Loader");
    }
    ResourceLoader result = (ResourceLoader) loaders.get(handlerName);
    logger.debug("获取到名字为:" + pName + "的资源Loader.");
    return result;
  }
View Full Code Here

TOP

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

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.