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

cn.bluejoe.xmlbeans.formater.ValueFormaterRegistry Maven / Gradle / Ivy

package cn.bluejoe.xmlbeans.formater;

import java.util.HashMap;
import java.util.Map;

/**
 * @author [email protected]
 */

public class ValueFormaterRegistry implements ValueFormaterFactory
{
	private Map, ValueFormater> _map = new HashMap, ValueFormater>();

	public ValueFormater getValueFormater(Object value)
	{
		return _map.get(value.getClass());
	}

	public void registerValueFormater(Class beanClass, ValueFormater valueFormater)
	{
		_map.put(beanClass, valueFormater);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy