Package net.hasor.mvc.support

Examples of net.hasor.mvc.support.ControllerModule


        System.out.println("--->>userControllerTest<<--");
        //1.创建一个标准的 Hasor 容器。
        AppContext appContext = Hasor.createAppContext(new Module() {
            public void loadModule(ApiBinder apiBinder) throws Throwable {
                /*绑定一个接口的实现类*/
                apiBinder.installModule(new ControllerModule());
            }
        });
        //
        RootController root = appContext.getInstance(RootController.class);
        Map<String, String> data = new HashMap<String, String>();
View Full Code Here


        System.out.println("--->>controllerTest<<--");
        //1.创建一个标准的 Hasor 容器。
        AppContext appContext = Hasor.createAppContext(new Module() {
            public void loadModule(ApiBinder apiBinder) throws Throwable {
                /*绑定一个接口的实现类*/
                apiBinder.installModule(new ControllerModule());
            }
        });
        //
        RootController root = appContext.getInstance(RootController.class);
        //F
View Full Code Here

TOP

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

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.