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.
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 Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(MappingResourceHolder configuration) Deprecated, for removal: This API element is subject to removal in a future version.configuration logicDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.lookup for the specificCustomMappingsobjects inside the given beanFactoryvoidsetMappingService(MappingResourceTarget mappingService) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class OrderedConfigurer
compareTo, getOrder, setOrder
-
Constructor Details
-
CustomMappingsConfigurer
public CustomMappingsConfigurer()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
lookup
Deprecated, for removal: This API element is subject to removal in a future version.lookup for the specificCustomMappingsobjects inside the given beanFactory- See Also:
-
configure
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
Deprecated, for removal: This API element is subject to removal in a future version. -
setMappingService
Deprecated, for removal: This API element is subject to removal in a future version.
-
SpringMappings-- and the deprecatedSpringBidiMappingServicewhere it still owns its mappings -- collects theMappingResourceHolderbeans of the application context itself, so this configurer -- and theSpringConfigurationPostProcessorthat drives it -- are no longer needed:<bean id="mappings" class="org.openehealth.ipf.commons.spring.map.SpringMappings"/>Doing so also populates the mappings before theContextRefreshedEventinstead 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.