
net.ymate.platform.mvc.IRequestProcessor Maven / Gradle / Ivy
/*
* Copyright 2007-2107 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.ymate.platform.mvc;
import net.ymate.platform.mvc.context.IRequestContext;
import net.ymate.platform.mvc.support.IControllerBeanFactory;
import net.ymate.platform.mvc.support.RequestExecutor;
/**
*
* IRequestProcessor
*
*
* MVC控制器请求处理器接口;
*
*
* @author 刘镇([email protected])
* @version 0.0.0
*
*
* 版本号 动作 修改人 修改时间
*
*
*
* 0.0.0
* 创建类
* 刘镇
* 2012-12-10下午10:27:59
*
*
*/
public interface IRequestProcessor {
/**
* 初始化请求处理器
*/
public void initialize();
/**
* 销毁
* @throws Exception
*/
public void destroy();
/**
* @return 返回当前MVC控制器工厂类对象,若不存在则创建工厂类并返回
*/
public IControllerBeanFactory getControllerBeanFactory();
/**
* 注册并分析控制器
*
* @param controller 目标控制器类
*/
public void addController(Class> controller);
/**
* @param context 请求上下文对象
* @return 绑定请求执行器,返回对象可能为空
*/
public RequestExecutor bindRequestExecutor(IRequestContext context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy