Package net.hasor.mvc.support

Examples of net.hasor.mvc.support.RootController


                /*绑定一个接口的实现类*/
                apiBinder.installModule(new ControllerModule());
            }
        });
        //
        RootController root = appContext.getInstance(RootController.class);
        Map<String, String> data = new HashMap<String, String>();
        data.put("userID", "zyc");
        //
        root.findMapping("/users/@add").invoke(data);
        root.findMapping("/users/@del").invoke(data);
        //
        //        MappingDefine define = root.findMapping("/users/@add");
        //        long t1 = System.currentTimeMillis();
        //        System.out.println("begin Call.");
        //        for (int i = 0; i < 10000000; i++) {
View Full Code Here


                /*绑定一个接口的实现类*/
                apiBinder.installModule(new ControllerModule());
            }
        });
        //
        RootController root = appContext.getInstance(RootController.class);
        //F
        root.findMapping("/oper/add").invoke();
        root.findMapping("/oper/del").invoke();
        //
    }
View Full Code Here

TOP

Related Classes of net.hasor.mvc.support.RootController

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.