Examples of BoostedDefaultResourceLoader


Examples of gluebooster.spring.resource.BoostedDefaultResourceLoader

   * @throws Exception
   */
  public void setResourcePaths(List<String> paths) throws Exception{
    getLog().info("set resource paths to ", paths);
   
    ResourceLoader resourceLoader = new BoostedDefaultResourceLoader();
    for (String path: paths){
      if (resourcePathTransformation != null){
        path = resourcePathTransformation.value(path);
      }
      Resource resource = resourceLoader.getResource(path);
      Document doc = DomUtils.read(resource.getInputStream());
      Node schemaNode = DomUtils.getNode(true, doc, "schema");
      for (Node simpleType: DomUtils.getNodes(true, schemaNode, "simpleType")){
        //Use defined format
        for (Node annotation: DomUtils.getNodes(true, simpleType, "annotation")){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.