Class UnmarshallingResourceReader

java.lang.Object
org.springframework.data.repository.init.UnmarshallingResourceReader
All Implemented Interfaces:
ResourceReader

public class UnmarshallingResourceReader extends Object implements ResourceReader
Author:
Oliver Gierke, Christoph Strobl
  • Constructor Details

    • UnmarshallingResourceReader

      public UnmarshallingResourceReader(org.springframework.oxm.Unmarshaller unmarshaller)
      Parameters:
      unmarshaller -
  • Method Details

    • readFrom

      public Object readFrom(org.springframework.core.io.Resource resource, @Nullable ClassLoader classLoader) throws IOException
      Description copied from interface: ResourceReader
      Reads a single or Collection of target objects from the given Resource.
      Specified by:
      readFrom in interface ResourceReader
      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:
      IOException