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 Type
    Method
    Description
    void
    setMappingResources(Collection<? extends Resource> resources)
    Reads every resource and registers the mappings it contains.
    void
    setMappingResources(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 called gender.xml.
  • Method Details

    • setMappingResources

      void setMappingResources(Collection<? extends Resource> resources)
      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

      void setMappingResources(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 called gender.xml.
      Parameters:
      resources - mapping resources
      format - a format id such as xml or conceptmap-r4-json, or null to dispatch by file extension