All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.godmonth.util.dozer.DozerTransformer Maven / Gradle / Ivy

package com.godmonth.util.dozer;

import org.apache.commons.collections4.Transformer;
import org.dozer.Mapper;

public class DozerTransformer implements Transformer {
	private Mapper mapper;
	private Class clazz;

	public DozerTransformer(Mapper mapper, Class clazz) {
		this.mapper = mapper;
		this.clazz = clazz;
	}

	@Override
	public OUT transform(Object input) {
		return mapper.map(input, clazz);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy