Interface ResourceReader

All Known Implementing Classes:
Jackson2ResourceReader, UnmarshallingResourceReader

public interface ResourceReader
Author:
Oliver Gierke, Christoph Strobl
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    readFrom(org.springframework.core.io.Resource resource, ClassLoader classLoader)
    Reads a single or Collection of target objects from the given Resource.
  • Method Details

    • readFrom

      Object readFrom(org.springframework.core.io.Resource resource, @Nullable ClassLoader classLoader) throws Exception
      Reads a single or Collection of target objects from the given Resource.
      Parameters:
      resource - must not be null.
      classLoader - can be null.
      Returns:
      Collection of target objects if resource contains multiple ones of single on. Never null.
      Throws:
      Exception