Package org.auto.io

Examples of org.auto.io.ClassPathResource


        .addDefinitionMappings(propertiesXmlDefinitionParser
            .parser(properties));
    delegatingResolver.setXmlDefinitionManager(xmlDefinitionManager);
    documentLoader.setEntityResolver(delegatingResolver);

    ClassPathResource resource = new ClassPathResource(
        "org//auto//dataSync-ywgy.sync.xml");
    Document document = documentLoader.loadDocument(resource
        .getInputStream());
    Element element = document.getDocumentElement();

    System.out.println(element.getNamespaceURI());
View Full Code Here


    return definitionMappings;
  };

  protected Resource getResource(String path) {
    // 只支持ClassPath资源
    return new ClassPathResource(path);
  }
View Full Code Here

    if (super.getPathMatcher().isPattern(locationPattern)) {
      String rootDirPath = determineRootDir(locationPattern);
      String subPattern = locationPattern.substring(rootDirPath.length());
      this.scan(rootDirPath, subPattern, handler);
    } else {
      Resource resource = new ClassPathResource(locationPattern);
      handler.handle(resource);
    }
  }
View Full Code Here

TOP

Related Classes of org.auto.io.ClassPathResource

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.