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

coo.mvc.config.AbstractConversionConfigurer Maven / Gradle / Ivy

package coo.mvc.config;

import org.springframework.format.support.FormattingConversionService;

/**
 * 转换器设置抽象类。
 */
public abstract class AbstractConversionConfigurer implements
		Comparable {
	/** 加载序号 */
	private Integer order = 0;

	/**
	 * 设置转换器。
	 * 
	 * @param conversionService
	 *            转换器服务组件
	 */
	public abstract void config(FormattingConversionService conversionService);

	@Override
	public int compareTo(AbstractConversionConfigurer other) {
		return other.getOrder() - order;
	}

	public Integer getOrder() {
		return order;
	}

	public void setOrder(Integer order) {
		this.order = order;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy