Interface MappingResourceTarget
- All Known Implementing Classes:
SpringBidiMappingService, SpringMappings
public interface MappingResourceTarget
Something mapping resources can be added to, i.e. the other end of a
MappingResourceHolder.
SpringMappings is the one to wire in new applications;
SpringBidiMappingService implements it as well so that
CustomMappingsConfigurer keeps working
against either.
- Since:
- 6.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetMappingResources(Collection<? extends Resource> resources) Reads every resource and registers the mappings it contains.voidsetMappingResources(Collection<? extends Resource> resources, String format) Reads every resource in a format named explicitly, for resources whose name does not identify one - a location without a file extension, or a file calledgender.xml.
-
Method Details
-
setMappingResources
Reads every resource and registers the mappings it contains. Which format a resource is in is decided by its file extension.- Parameters:
resources- mapping resources
-
setMappingResources
Reads every resource in a format named explicitly, for resources whose name does not identify one - a location without a file extension, or a file calledgender.xml.- Parameters:
resources- mapping resourcesformat- aformat idsuch asxmlorconceptmap-r4-json, ornullto dispatch by file extension
-