Class CustomMappings
- java.lang.Object
-
- org.openehealth.ipf.commons.spring.map.config.CustomMappings
-
- All Implemented Interfaces:
MappingResourceHolder
public class CustomMappings extends Object implements 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:
CustomMappingsConfigurer
-
-
Constructor Summary
Constructors Constructor Description CustomMappings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends org.springframework.core.io.Resource>getMappingResources()voidsetMappingResource(org.springframework.core.io.Resource mappingResource)Registers a mapping resource.voidsetMappingResources(Collection<? extends org.springframework.core.io.Resource> mappingResources)Registers a collection of mapping resources
-
-
-
Method Detail
-
getMappingResources
public Collection<? extends org.springframework.core.io.Resource> getMappingResources()
- Specified by:
getMappingResourcesin interfaceMappingResourceHolder- Returns:
- registerd mapping resources
-
setMappingResources
public void setMappingResources(Collection<? extends org.springframework.core.io.Resource> mappingResources)
Description copied from interface:MappingResourceHolderRegisters a collection of mapping resources- Specified by:
setMappingResourcesin interfaceMappingResourceHolder- Parameters:
mappingResources- mapping resources
-
setMappingResource
public void setMappingResource(org.springframework.core.io.Resource mappingResource)
Description copied from interface:MappingResourceHolderRegisters a mapping resource.- Specified by:
setMappingResourcein interfaceMappingResourceHolder- Parameters:
mappingResource- mapping resource
-
-