Package com.alibaba.citrus.service.moduleloader

Examples of com.alibaba.citrus.service.moduleloader.Module.execute()


        getInvocationContext("/app1");
        initRequestContext();

        Module module = moduleLoader.getModule("screens", "class.MyScreen");

        module.execute();

        assertEquals("execute", rundata.getAttribute("handler"));
    }

    @Test
View Full Code Here


            Module module = moduleLoaderService.getModuleQuiet(SCREEN_MODULE, moduleName);

            // 当指定了templateName时,可以没有的screen module,而单单渲染模板。
            // 这样就实现了page-driven,即先写模板,必要时再写一个module class与之对应。
            if (module != null) {
                module.execute();
            } else {
                if (isScreenModuleRequired()) {
                    throw new ModuleNotFoundException("Could not find screen module: " + moduleName);
                }
            }
View Full Code Here

                try {

                    if (module instanceof ModuleReturningValue) {
                        return ((ModuleReturningValue) module).executeAndReturn();
                    } else {
                        module.execute();
                    }
                } finally {
                    ScreenEventUtil.setEventName(rundata.getRequest(), null);
                }
            } else {
View Full Code Here

                rundata.pushContext(contextForControl, templateName);

                try {
                    if (controlModule != null) {
                        controlModule.execute();
                    }

                    // Control module可以通过注入ControlParameters接口来修改template。
                    String templateOverriden = rundata.getControlTemplate();
View Full Code Here

                try {

                    if (module instanceof ModuleReturningValue) {
                        return ((ModuleReturningValue) module).executeAndReturn();
                    } else {
                        module.execute();
                    }
                } finally {
                    ScreenEventUtil.setEventName(rundata.getRequest(), null);
                }
            } else {
View Full Code Here

            Module module = moduleLoaderService.getModuleQuiet(SCREEN_MODULE, moduleName);

            // ��ָ����templateNameʱ������û�е�screen module����������Ⱦģ�塣
            // ������ʵ����page-driven������дģ�壬��Ҫʱ��дһ��module class��֮��Ӧ��
            if (module != null) {
                module.execute();
            } else {
                if (isScreenModuleRequired()) {
                    throw new ModuleNotFoundException("Could not find screen module: " + moduleName);
                }
            }
View Full Code Here

                rundata.pushContext(contextForControl, templateName);

                try {
                    if (controlModule != null) {
                        controlModule.execute();
                    }

                    // Control module����ͨ��ע��ControlParameters�ӿ����޸�template��
                    String templateOverriden = rundata.getControlTemplate();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.