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

cn.tom.mvc.handler.Handler Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package cn.tom.mvc.handler;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import cn.tom.mvc.core.ControllerModel;
import cn.tom.mvc.core.RequestContext;
import cn.tom.mvc.ext.AntPathMatcher;
import cn.tom.mvc.interceptor.Interceptor;

/**
 * @author panmg
 * Handler接口 记录handlers(defaultNamehandler, DefaultAnnotationHandler)
 * 每个 Handler 记录 各自的HandlerInfo, interceptors, 针对handler的单例
 */
public interface Handler {
	
	public static AntPathMatcher matcher = new AntPathMatcher();
	
	public static LinkedHashMap handlers = new LinkedHashMap();
	
	public abstract Controller proxyApp();

	public Map getApps();

	public List getInterceptors();

	public abstract void collectApps(String pattern, ControllerModel controller);

	public abstract void collectInterceptor(Class clazz);
	
	public HandlerInfo match(RequestMapping mapping, RequestContext context);
	
	

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy