Class UnmarshallingResourceReader
java.lang.Object
org.springframework.data.repository.init.UnmarshallingResourceReader
- All Implemented Interfaces:
ResourceReader
- Author:
- Oliver Gierke, Christoph Strobl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.repository.init.ResourceReader
ResourceReader.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadFrom(Resource resource, ClassLoader classLoader) Reads a single orCollectionof target objects from the givenResource.
-
Constructor Details
-
UnmarshallingResourceReader
- Parameters:
unmarshaller-
-
-
Method Details
-
readFrom
Description copied from interface:ResourceReaderReads a single orCollectionof target objects from the givenResource.- Specified by:
readFromin interfaceResourceReader- Parameters:
resource- must not be null.classLoader- can be null.- Returns:
Collectionof target objects if resource contains multiple ones of single on. Never null.- Throws:
IOException
-