package com.wecloud.dispatch.general.config;

import com.wecloud.dispatch.ActionContext;
import com.wecloud.dispatch.general.impl.GeneralActionMethodValidInterceptor;
import com.wecloud.dispatch.general.impl.GeneralMethodArgumentResolver;

/**
 * @author lixiaozhong
 */
public class GeneralActionDefaultConfigurer extends GeneralActionConfigurerAdapter {

	@Override
	public void addConfig(ActionContext actionContext) {
		actionContext.getMethodArgumentResolverRegistry().add(new GeneralMethodArgumentResolver());
		actionContext.getActionMethodInterceptorRegistry().add(new GeneralActionMethodValidInterceptor());
	}
}
