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
-
Method Summary
Modifier and TypeMethodDescriptionreadFrom
(Resource resource, ClassLoader classLoader) Reads a single orCollection
of target objects from the givenResource
.
-
Constructor Details
-
UnmarshallingResourceReader
- Parameters:
unmarshaller
-
-
-
Method Details
-
readFrom
Description copied from interface:ResourceReader
Reads a single orCollection
of target objects from the givenResource
.- Specified by:
readFrom
in interfaceResourceReader
- 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
-