Package mfinder

Examples of mfinder.ActionInvocation


*/
public class ThreadActionFactory extends DefaultActionFactory {

    @Override
    protected ActionInvocation createActionInvocation(String path, Object... params) {
        ActionInvocation ai = super.createActionInvocation(path, params);
        if (ThreadContext.get() == null)
            ThreadContext.set(new ThreadContext());
        ThreadContext.setActionInvocation(ai);
        return ai;
    }
View Full Code Here


                }
            }
        }

        //create ActionInvocation
        ActionInvocation invocation = createActionInvocation(path, params);

        //invoke
        Object res = null;
        try {
            res = invocation.invoke(params);
            //result is string
            if (res instanceof String) {
                String resInfo = res.toString();
                ActionProxy ap = invocation.getActionProxy();
                Result result = null;

                //如果action中存在相应的结果映射
                if ((result = ap.getResults().get(resInfo)) != null) {
                    //调用结果对象相应的结果类型
View Full Code Here

TOP

Related Classes of mfinder.ActionInvocation

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.