Class CustomMappings
java.lang.Object
org.openehealth.ipf.commons.spring.map.config.CustomMappings
- All Implemented Interfaces:
MappingResourceHolder
This class should be used to define the custom mappings
in the spring context definition.
<!-- either as a list of mapping definitions --> <bean id="customMapping3" class="org.openehealth.ipf.commons.map.config.CustomMappings"> <property name="mappingResources"> <list> <value>classpath:configurer1.map</value> <value>classpath:configurer2.map</value> </list> </property> </bean> <!-- or as a single mapping definition --> <bean id="customMappingSingle" class="org.openehealth.ipf.commons.map.config.CustomMappings"> <property name="mappingResource" value="classpath:configurer3.map" /> </bean>
- Author:
- Christian Ohr, Boris Stanojevic
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMappingResource
(Resource mappingResource) Collection<? extends Resource>
void
setMappingResource
(Resource mappingResource) Registers a mapping resource.void
setMappingResources
(Collection<? extends Resource> mappingResources) Registers a collection of mapping resources
-
Constructor Details
-
CustomMappings
public CustomMappings()
-
-
Method Details
-
getMappingResources
- Specified by:
getMappingResources
in interfaceMappingResourceHolder
- Returns:
- immutable registered mapping resources
-
addMappingResource
- Specified by:
addMappingResource
in interfaceMappingResourceHolder
-
setMappingResources
Description copied from interface:MappingResourceHolder
Registers a collection of mapping resources- Specified by:
setMappingResources
in interfaceMappingResourceHolder
- Parameters:
mappingResources
- mapping resources
-
setMappingResource
Description copied from interface:MappingResourceHolder
Registers a mapping resource.- Specified by:
setMappingResource
in interfaceMappingResourceHolder
- Parameters:
mappingResource
- mapping resource
-