Package org.springframework.core.io.support

Examples of org.springframework.core.io.support.ResourcePropertySource


   * @throws ServletException If the disk fails.
   */
  private ResourcePropertySource asPropertySource(final Resource resource)
      throws ServletException {
    try {
      return new ResourcePropertySource(resource);
    } catch (IOException ex) {
      throw new ServletException(ex);
    }
  }
View Full Code Here


  public void addPropertySources( Resource... resources ) {
    MutablePropertySources propertySources = new MutablePropertySources();
    for ( Resource resource : resources ) {
      if ( resource.exists() ) {
        try {
          propertySources.addLast( new ResourcePropertySource( resource ) );
        }
        catch ( IOException ioe ) {
          throw new AcrossException( "Failed to load property resource " + resource, ioe );
        }
      }
View Full Code Here

TOP

Related Classes of org.springframework.core.io.support.ResourcePropertySource

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.