CN102566987A - Method for creating distributively-deployed reflecting AjaxPro (Ajax.NET Professional) invocation framework - Google Patents
Method for creating distributively-deployed reflecting AjaxPro (Ajax.NET Professional) invocation framework Download PDFInfo
- Publication number
- CN102566987A CN102566987A CN2010105853727A CN201010585372A CN102566987A CN 102566987 A CN102566987 A CN 102566987A CN 2010105853727 A CN2010105853727 A CN 2010105853727A CN 201010585372 A CN201010585372 A CN 201010585372A CN 102566987 A CN102566987 A CN 102566987A
- Authority
- CN
- China
- Prior art keywords
- framework
- page
- ajaxpro
- reflecting
- deployed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to a method for creating a distributively-deployed reflecting AjaxPro (Ajax.NET Professional) invocation framework, which is based on a Jquery framework, and includes the steps: a, transmitting a page class when a page is loaded; b, reflecting a method for declaring an AjaxMethod in the page and registering a generated invocation script on the page; c, sending an ashx request by an invoker by the aid of a method in the script; and d, reflecting the method after a handler receives and analyzes a name of a method declared by the AjaxMethod to be executed, performing delegated invocation for the reflected method, and serializing the method and returning after a result is obtained. The method is capable of supporting the distributively-deployed reflecting AjaxPro invocation framework, an AjaxPro framework can be deployed in a distributive environment and can be invoked by different computers.
Description
Technical field
The present invention relates to the method that a kind of reflective AjaxPro that creates distributed deployment calls framework.
Background technology
The Ajax method improves user experience; It is more reasonable to make that the page loads; But object reference process more complicated; Jquery framework by American John Resig exploitation provided an easier method afterwards, had created the AjaxPro framework based on Jquery by German Stein again, and it has utilized principle of reflection to make and called more simply, has been more prone to understand.But because this framework has used the interim compile mode of principle of reflection and .NET website; It can't call on different machine; Do not use fixing website to use even do not use the website of compiling at random; Still will require the website physical directory on every computing machine identical, it is difficult therefore on the environment of distributed deployment, using.
Summary of the invention
The objective of the invention is to overcome the defective that prior art exists, provide a kind of reflective AjaxPro of distributed deployment that can support to call the method for framework, it can be disposed under distributed environment, and can call by different machine.
The technical solution adopted for the present invention to solve the technical problems is: a kind of reflective AjaxPro that creates distributed deployment calls the method for framework, and it is based on the Jquery framework, and step is following: a, transmission classes of pages when the page loads; B, the method for statement AjaxMethod in the page is reflected, the invoke script that generates is registered on the page; C, caller send the ashx request through the method in the script; D, reflect receive and analyze the method name of the AjaxMethod statement that will carry out at handler after; Reflection process is divided into two steps, first step: earlier the class libraries under the catalogue of the same name of this machine is reflected, if failure; Then carry out second step: the position that analyzes reflectance target by the procedure set bibliographic structure of current site; Have several dll under its catalogue, comprising the different sink file in the website, the expired file file that can be added a suffix of the same name be delete in these temporary library files; Can collect the current dll that is being used according to this characteristic; Reflect trial then successively, entrust the method that reflects and call, serializing obtains returning behind the result.
Beneficial effect of the present invention: the invention solves the defective that exists in the background technology, kept the original style of AjaxPro framework, and convenient friendly fast method of calling, can under distributed environment, dispose, can call by different machine.The present invention has rewritten the AjaxPro interface; Hope has been used at other and has been revised the distributed deployment problem in the project of AjaxPro; And think under the situation of few modification code; Can directly replace AjaxPro with the present invention, configuration file is slightly different, but can under the situation of not revising line code, directly reach desired effects.
Embodiment
A kind of reflective AjaxPro that creates distributed deployment calls the method for framework, and it is based on the Jquery framework, and step is following: a, transmission classes of pages when the page loads; B, the method for statement AjaxMethod in the page is reflected, the invoke script that generates is registered on the page; C, caller send the ashx request through the method in the script; D, reflect receive and analyze the method name of the AjaxMethod statement that will carry out at handler after, reflection process is divided into two steps, first step: earlier the class libraries under the catalogue of the same name of this machine is reflected; If second step is then carried out in failure: analyze the position of reflectance target by the procedure set bibliographic structure of current site, have several dll under its catalogue; Comprising the different sink file in the website; Like the page and User Defined control etc., also comprised the storehouse that some are expired, the expired file file that can be added a suffix of the same name be delete in these temporary library files; Can collect the current dll that is being used (result is generally 1-4) according to this characteristic; Reflect trial then successively, entrust the method that reflects and call, serializing obtains returning behind the result.
Claims (1)
1. a reflective AjaxPro who creates distributed deployment calls the method for framework, and it is characterized in that based on the Jquery framework step is following: a, when the page loads, transmit classes of pages; B, the method for statement AjaxMethod in the page is reflected, the invoke script that generates is registered on the page; C, caller send the ashx request through the method in the script; D, reflect receive and analyze the method name of the AjaxMethod statement that will carry out at handler after; Reflection process is divided into two steps, first step: earlier the class libraries under the catalogue of the same name of this machine is reflected, if failure; Then carry out second step: the position that analyzes reflectance target by the procedure set bibliographic structure of current site; Have several dll under its catalogue, comprising the different sink file in the website, the expired file file that can be added a suffix of the same name be delete in these temporary library files; Can collect the current dll that is being used according to this characteristic; Reflect trial then successively, entrust the method that reflects and call, serializing obtains returning behind the result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105853727A CN102566987A (en) | 2010-12-13 | 2010-12-13 | Method for creating distributively-deployed reflecting AjaxPro (Ajax.NET Professional) invocation framework |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105853727A CN102566987A (en) | 2010-12-13 | 2010-12-13 | Method for creating distributively-deployed reflecting AjaxPro (Ajax.NET Professional) invocation framework |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102566987A true CN102566987A (en) | 2012-07-11 |
Family
ID=46412502
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105853727A Pending CN102566987A (en) | 2010-12-13 | 2010-12-13 | Method for creating distributively-deployed reflecting AjaxPro (Ajax.NET Professional) invocation framework |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102566987A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090024982A1 (en) * | 2007-07-20 | 2009-01-22 | International Business Machines Corporation | Apparatus, system, and method for archiving small objects to improve the loading time of a web page |
CN101661494A (en) * | 2009-09-29 | 2010-03-03 | 莱芜钢铁集团有限公司 | Data interactive method for distributed middleware and database |
-
2010
- 2010-12-13 CN CN2010105853727A patent/CN102566987A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090024982A1 (en) * | 2007-07-20 | 2009-01-22 | International Business Machines Corporation | Apparatus, system, and method for archiving small objects to improve the loading time of a web page |
CN101661494A (en) * | 2009-09-29 | 2010-03-03 | 莱芜钢铁集团有限公司 | Data interactive method for distributed middleware and database |
Non-Patent Citations (3)
Title |
---|
王思焜: "基于Ajax与J2EE技术的AJ框架设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
胡锦丽: "基于J2EE+Ajax的分布式任务管理系统的应用研究", 《三明学院学报》 * |
黄强 等: "基于JSON和IoC的AJAX-RMI插件", 《计算机工程》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6912583B2 (en) | Service processing method and equipment | |
CN108027722B (en) | Dynamically updating applications in compilation and deployment | |
US10719386B2 (en) | Method for fault handling in a distributed it environment | |
JP2019536153A (en) | Smart contract processing method and apparatus | |
US8739147B2 (en) | Class isolation to minimize memory usage in a device | |
US8490052B2 (en) | Declarative programming model for authoring and execution control and data flow for resource oriented system | |
US10048960B2 (en) | Identifying source code used to build executable files | |
CN103399734A (en) | Method for generating REST service and achieving REST and corresponding equipment | |
US7818733B2 (en) | Improving bundle control in computing environment | |
CN105022630A (en) | Component management system and component management method | |
WO2017041499A1 (en) | Software upgrade method and system, and computer-readable storage medium | |
US8250226B2 (en) | Generating one or more clients for generating one or more synthetic transactions with one or more web service operations | |
Garbervetsky et al. | Toward full elasticity in distributed static analysis: The case of callgraph analysis | |
CN101236503A (en) | Hot-deployment entity component | |
US9411618B2 (en) | Metadata-based class loading using a content repository | |
CN102750144A (en) | Generating tool of function module | |
CN109408256B (en) | Application calling method and device | |
CN105446789A (en) | Method and apparatus for building application in android system | |
US20120324484A1 (en) | Dynamic Loading of Kernel Extensions | |
CN103885784A (en) | Method for establishing Android platform with security module and plugging function | |
KR102141749B1 (en) | APP program execution method and device | |
CN110334031B (en) | Memory allocation code detection method and device, computer equipment and storage medium | |
CN102566987A (en) | Method for creating distributively-deployed reflecting AjaxPro (Ajax.NET Professional) invocation framework | |
US10146885B1 (en) | Method and system for deciding on ordering of scripting language source code for dependency resolution | |
CN109947420B (en) | Method for realizing shortcut key mechanism of code editor and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120711 |