public class DozerBeanMapperFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<Mapper>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
DozerBeanMapperFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy()
Spring DisposableBean method implementation.
|
Mapper |
getObject() |
Class<Mapper> |
getObjectType() |
boolean |
isSingleton() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCustomConverters(List<CustomConverter> customConverters) |
void |
setCustomConvertersWithId(Map<String,CustomConverter> customConvertersWithId) |
void |
setCustomFieldMapper(CustomFieldMapper customFieldMapper) |
void |
setEventListeners(List<DozerEventListener> eventListeners) |
void |
setFactories(Map<String,BeanFactory> factories) |
void |
setMappingBuilders(List<BeanMappingBuilder> mappingBuilders) |
void |
setMappingFiles(org.springframework.core.io.Resource[] mappingFiles)
Spring resources definition for providing mapping file location.
|
public final void setMappingFiles(org.springframework.core.io.Resource[] mappingFiles)
<bean class="org.dozer.spring.DozerBeanMapperFactoryBean">
<property name="mappingFiles" value="classpath*:/*.dozer.xml"/>
</bean>
mappingFiles
- Spring resource definitionpublic final void setMappingBuilders(List<BeanMappingBuilder> mappingBuilders)
public void setCustomFieldMapper(CustomFieldMapper customFieldMapper)
public final void setCustomConverters(List<CustomConverter> customConverters)
public void setCustomConvertersWithId(Map<String,CustomConverter> customConvertersWithId)
public final void setEventListeners(List<DozerEventListener> eventListeners)
public final void setFactories(Map<String,BeanFactory> factories)
public final Class<Mapper> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<Mapper>
public final boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<Mapper>
public final void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2005–2017 dozer. All rights reserved.