Class CustomMappingsConfigurer<R extends Registry>

java.lang.Object
org.openehealth.ipf.commons.core.config.OrderedConfigurer<MappingResourceHolder, R>
org.openehealth.ipf.commons.spring.map.config.CustomMappingsConfigurer<R>
All Implemented Interfaces:
Comparable<OrderedConfigurer<MappingResourceHolder, R>>, Configurer<MappingResourceHolder, R>

@Deprecated(since="6.0.0", forRemoval=true) public class CustomMappingsConfigurer<R extends Registry> extends OrderedConfigurer<MappingResourceHolder, R>
Deprecated, for removal: This API element is subject to removal in a future version.
SpringMappings -- and the deprecated SpringBidiMappingService where it still owns its mappings -- collects the MappingResourceHolder beans of the application context itself, so this configurer -- and the SpringConfigurationPostProcessor that drives it -- are no longer needed:
    <bean id="mappings"
          class="org.openehealth.ipf.commons.spring.map.SpringMappings"/>
Doing so also populates the mappings before the ContextRefreshedEvent instead of after it, once all singletons have been instantiated. Both mechanisms may be active at the same time: SpringMappings.setMappingResource(org.springframework.core.io.Resource, String) ignores resources it has already evaluated.
Configurer used to add all CustomMappings bean occurrences from the spring application context to the provided MappingResourceTarget, normally a SpringMappings.

This is what lets an application layer its own mappings over the ones IPF ships, in whichever format each file is written in.

Author:
Boris Stanojevic
  • Constructor Details

    • CustomMappingsConfigurer

      public CustomMappingsConfigurer()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • lookup

      public Collection<MappingResourceHolder> lookup(Registry registry)
      Deprecated, for removal: This API element is subject to removal in a future version.
      lookup for the specific CustomMappings objects inside the given beanFactory
      See Also:
    • configure

      public void configure(MappingResourceHolder configuration)
      Deprecated, for removal: This API element is subject to removal in a future version.
      configuration logic
      Parameters:
      configuration - custom configuration object used for specific configuration task
    • getMappingService

      public MappingResourceTarget getMappingService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setMappingService

      public void setMappingService(MappingResourceTarget mappingService)
      Deprecated, for removal: This API element is subject to removal in a future version.