Interface ResourceReader
- All Known Implementing Classes:
Jackson2ResourceReader
,UnmarshallingResourceReader
public interface ResourceReader
- Author:
- Oliver Gierke, Christoph Strobl
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionreadFrom
(Resource resource, ClassLoader classLoader) Reads a single orCollection
of target objects from the givenResource
.
-
Method Details
-
readFrom
Reads a single orCollection
of target objects from the givenResource
.- 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
-