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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMappingResource(Resource mappingResource) Collection<? extends Resource> voidsetMappingResource(Resource mappingResource) Registers a mapping resource.voidsetMappingResources(Collection<? extends Resource> mappingResources) Registers a collection of mapping resources
-
Constructor Details
-
CustomMappings
public CustomMappings()
-
-
Method Details
-
getMappingResources
- Specified by:
getMappingResourcesin interfaceMappingResourceHolder- Returns:
- immutable registered mapping resources
-
addMappingResource
- Specified by:
addMappingResourcein interfaceMappingResourceHolder
-
setMappingResources
Description copied from interface:MappingResourceHolderRegisters a collection of mapping resources- Specified by:
setMappingResourcesin interfaceMappingResourceHolder- Parameters:
mappingResources- mapping resources
-
setMappingResource
Description copied from interface:MappingResourceHolderRegisters a mapping resource.- Specified by:
setMappingResourcein interfaceMappingResourceHolder- Parameters:
mappingResource- mapping resource
-