package com.wecloud.netty.dispatch.general.config;

import com.wecloud.netty.dispatch.ActionContext;
import com.wecloud.netty.dispatch.general.impl.GeneralActionMethodValidInterceptor;
import com.wecloud.netty.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());
	}
}
