Package org.g4studio.core.resource

Examples of org.g4studio.core.resource.ResourceHandler


    }
    String handlerName = pName.toLowerCase();
    if (handlers.containsKey(handlerName) == false) {
      return null;
    }
    ResourceHandler result = (ResourceHandler) handlers.get(handlerName);
    return result;
  }
View Full Code Here


      }
      String[] handlers = resourceConfig.getHandlerNames();

      for(int i=0; i<handlers.length; i++){
        String handerName = handlers[i];
        ResourceHandler handler = handlerMapping.mapping(handerName);
        if ( handler == null ){
          logger.warn("没有找到名为:" + handerName + "的资源处理器");
          continue;
        }
        try{       
            handler.handle(res);
        }catch(Exception ex){
          logger.warn("对资源:" + pUri + "进行:" + handerName + " 处理时出现异常!", ex );
          continue;
        }
      }
View Full Code Here

TOP

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

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.