Package net.hasor.mvc

Examples of net.hasor.mvc.ModelController


    /**调用目标*/
    public Object invoke(CallStrategy call, Map<String, ?> params) throws Throwable {
        final CallStrategy alCall = this.createCallStrategy(call);
        final Map<String, ?> atParams = (params == null) ? new HashMap<String, Object>() : params;
        //
        final ModelController mc = this.targetProvider.get();
        return alCall.exeCall(new Call() {
            public Set<String> getParamKeys() {
                return atParams.keySet();
            }
            public Object getParam(String key) {
View Full Code Here


    }
    @Override
    public Object exeCall(Call call) throws Throwable {
        WebModelController webController = null;
        try {
            ModelController controller = call.getTarget();
            if (controller instanceof WebModelController) {
                webController = ((WebModelController) controller);
                webController.initController(this.servletRequest, this.servletResponse);
            }
            return super.exeCall(new WebCallWrap(call, this.servletRequest, this.servletResponse));
View Full Code Here

TOP

Related Classes of net.hasor.mvc.ModelController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.