CN103425495A - Method and system for processing service request information - Google Patents

Method and system for processing service request information Download PDF

Info

Publication number
CN103425495A
CN103425495A CN2013103431118A CN201310343111A CN103425495A CN 103425495 A CN103425495 A CN 103425495A CN 2013103431118 A CN2013103431118 A CN 2013103431118A CN 201310343111 A CN201310343111 A CN 201310343111A CN 103425495 A CN103425495 A CN 103425495A
Authority
CN
China
Prior art keywords
module
service requesting
definition
requesting information
information
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.)
Granted
Application number
CN2013103431118A
Other languages
Chinese (zh)
Other versions
CN103425495B (en
Inventor
朱红旗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310343111.8A priority Critical patent/CN103425495B/en
Publication of CN103425495A publication Critical patent/CN103425495A/en
Application granted granted Critical
Publication of CN103425495B publication Critical patent/CN103425495B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method and system for processing service request information. The method comprises the steps that a first user module receives first service request information sent by a user; when the first service request information is dynamic implementation information, the first user module sends the first service request information to the a first implementation module, the format and the definition of the first service request information are provided by a first definition module corresponding to the first user module, and implementation processing is carried out on the first service request information through the first implementation module; information returned by the first implementation module after implementation processing is received; when the first service request information is static state constant information, the first user module directly uses constant data corresponding to the first service request information in the corresponding first definition module. Therefore, the separation of an interface and implementation, the separation of display and the implementation and the separation of a foreground and a background are achieved, the hot plugging capability of modules is improved, and the customization of the modules and the stability of module service are improved.

Description

The disposal route of service requesting information and system
Technical field
The present invention relates to mobile communication, internet arena, relate in particular to a kind of disposal route and system of service requesting information.
Background technology
Traditional technology is dynamic modeling system (the Open Service Gateway Initiative towards Java, OSGi) modular design of lower software be take module basically as unit, a module provides one to two submodule, each submodule forms service bus by the service of deriving, and by the ability of other submodules of bus service acquisition.
The modular design that Fig. 1 is software under traditional OSGi.In Fig. 1, do not consider the fusion of three problems of current main-stream Software for Design in modular design: behavior definition, behavior realization, behavior represent.Therefore, when variation has occurred for the realization of module 1, (the behavior definition does not change, only that behavior realizes having changed), according to the standard module 1 of OSGi, need to reload so, cause so module 2-4 all to need to reload, even if module 1 has defined separately interface, behavior represents (being generally the UI page) so also needs to reload, because the definition of module under traditional OSGi is generally a submodule or is divided into interface and realizes two submodules.The ability that represents that has comprised realization and the behavior of interface in realization.
This shows, in prior art under OSGi the modular design of software have following defect:
1) light foreground, the heavy backstage of the design under traditional OSGi, the design fundamental sum Interface realization that behavior represents merges, and does not propose separately, causes the behavior realization not represent and separate by submodule with behavior, causes the defect in design.
2) ability of module is paid attention in traditional OSGi design, but, for the not definition clearly of the several submodules of Module Division, also there is no theoretical support.
Summary of the invention
The embodiment of the present invention provides a kind of disposal route and system of service requesting information, to realize separating of interface and realization, what represent and realize separates, the separating of foreground and backstage, thereby improved the hot-swappable ability of module, improved the customization of module and the stability of module service.
First aspect, the embodiment of the present invention provides a kind of disposal route of service requesting information, comprising:
The first user module receives the first service requesting information that the user sends;
When described the first service requesting information when dynamically realizing information, described first user module realizes that to first module sends described the first service requesting information, the first corresponding definition module provides by described first user module for the form of described the first service requesting information and definition, by described first, realizes that module realizes processing to described the first service requesting information; Receive the described first information realized after realization that module returns is processed;
When described the first service requesting information is static constant information, described first user module is directly quoted constant data corresponding to the first service requesting information described in the first corresponding definition module.
In a kind of possible implementation, described method also comprises:
The first user module receives the second service requesting information that the user sends;
When described the second service requesting information when dynamically realizing information, what described first user module was corresponding to the second definition module second realizes that module sends described the second service requesting information, the form of described the second service requesting information and definition are provided by described the second definition module, higher level's definition module that described the second definition module is described the first definition module; Realize that by described second module realizes processing to described the second service requesting information; Receive the described second information realized after realization that module returns is processed;
When described the second service requesting information is static constant information, constant data corresponding to the second service requesting information described in described first user module indirect referencing the second definition module.
In a kind of possible implementation, described first realizes when module realizes processing to described the first service requesting information also comprising: described first realizes that module calls the constant data while processing described the first service requesting information from described the second definition module.
In a kind of possible implementation, what described first user module was corresponding to the second definition module second realizes that module sends described the second service requesting information and specifically comprises:
While not comprising described the second service requesting information that corresponding first user module sends in described the first definition module, what described first user module was corresponding to described the second definition module second realizes that module sends described the second service requesting information.
Second aspect, the embodiment of the present invention provides a kind of disposal system of service requesting information, and this system comprises: the first definition module, first is realized module and first user module;
Described first user module is used for: receive the first service requesting information that the user sends;
When described the first service requesting information when dynamically realizing information, realize that to first of correspondence module sends described the first service requesting information, the first corresponding definition module provides by described first user module for the form of described the first service requesting information and definition, by described first, realizes that module realizes processing to described the first service requesting information; Receive the described first information realized after realization that module returns is processed;
When described the first service requesting information is static constant information, directly quote constant data corresponding to the first service requesting information described in the first corresponding definition module.
In a kind of possible implementation, described system also comprises: the second definition module, the second line module and second are realized module, wherein, and higher level's definition module that described the second definition module is described the first definition module;
Described first user module is used for: receive the second service requesting information that the user sends;
When described the second service requesting information, when dynamically realizing information, to described the second definition module, corresponding second realizes that module sends described the second service requesting information, and the form of described the second service requesting information and definition are provided by described the second definition module; Realize that by described second module realizes processing to described the second service requesting information; Receive the described second information realized after realization that module returns is processed;
When described the second service requesting information is static constant information, constant data corresponding to the second service requesting information described in indirect referencing the second definition module.
In a kind of possible implementation, described first realize module also for: when described the first service requesting information being realized process, call the constant data while processing described the first service requesting information from described the second definition module.
In a kind of possible implementation, described first user module specifically for:
While not comprising described the second service requesting information that corresponding first user module sends in described the first definition module, to described the second definition module, corresponding second realizes that module sends described the second service requesting information.
In the embodiment of the present invention, the first user module receives the first service requesting information that the user sends; When described the first service requesting information when dynamically realizing information, described first user module realizes that to first module sends described the first service requesting information, the first corresponding definition module provides by described first user module for the form of described the first service requesting information and definition, by described first, realizes that module realizes processing to described the first service requesting information; Receive the described first information realized after realization that module returns is processed; When described the first service requesting information is static constant information, described first user module is directly quoted constant data corresponding to the first service requesting information described in the first corresponding definition module.Realized thus separating of interface and realization, what represent and realize separates, the separating of foreground and backstage, thus improved the hot-swappable ability of module, improved the customization of module and the stability of module service.
The accompanying drawing explanation
The modular design that Fig. 1 is software under traditional OSGi;
The process flow figure of the service requesting information that Fig. 2 provides for the embodiment of the present invention one;
The process flow figure of the service requesting information that Fig. 3 provides for the embodiment of the present invention two;
Fig. 4 is the result schematic diagram that the new Design Mode lower module of OSGi is divided;
The process flow figure of the service requesting information that Fig. 5 provides for the embodiment of the present invention three;
The disposal system schematic diagram of the service requesting information that Fig. 6 provides for the embodiment of the present invention four.
Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
In all embodiment of the present invention, a basic module of design and a plurality of other modules under OSGi, basic module does not rely on other modules, and other modules depend on basic module directly or indirectly, and each module all realized behavior definition, realize and separating of representing.
The process flow figure of the service requesting information that Fig. 2 provides for the embodiment of the present invention one.As shown in Figure 2, the method that the embodiment of the present invention provides comprises:
Step 201, the first user module receives the first service requesting information that the user sends.
The first definition module, first user module and first realizes that module coordinates an action of completing user request jointly, so the first definition module also can be called the behavior definition module, provide abstract behavior interface in behavior definition module, the entity class relevant with behavior (Plain Old Java Objects, POJO) and the constant relevant with behavior, be exemplified as, the user has asked an action of turning on light, so abstract behavior interface just is equivalent to define one can call the interface that other functions or method complete this action of turning on light, object-the bulb of this action and entity class is equivalent to turn on light, constant just is equivalent to the constant information of some static state such as the size of action object-bulb and size, first realizes that module realizes module also referred to as behavior, behavior realizes that module is mainly that interface to defining in the behavior definition module is realized, the whole core logic of module is realized all in behavior, realizing in module, simultaneously to the service bus issuing service, inform that other modules behavior realizes the function that module is achieved, the first user module represents module also referred to as behavior, the behavior represents the interactive capability that module provides behavior, need behavior interface entity class and with the behavior relevant constant relevant with behavior defined in introducing behavior definition module, and the importing behavior realizes the service of module issue, and the WEB(of take can also be JSP, HTML, WML and local application interface) visual page represents to the user that above-mentioned three modules are common coordinates achieved function.It should be noted that, although behavior represents in module the service that the behavior of having introduced realizes module, but to represent module be that dependent behavior is not realized module in behavior static state compiling dependence, their dependence is operating dynamic dependency, be, after above-mentioned any one module is upgraded, not interrupt providing service to other modules.
Particularly, received the first service requesting information of user's input by the first user module.
Step 202, when described the first service requesting information when dynamically realizing information, described first user module realizes that to first of correspondence module sends described the first service requesting information, by described first, realizes that module realizes processing to described the first service requesting information.
Abstract behavior interface entity class and with the behavior relevant constant relevant with behavior is provided in the first definition module, and the first user module is quoted above-mentioned behavior interface.When the first service requesting information when dynamically realizing information, needed certain action, so by the motion interface defined in the first definition module of quoting in the first user module, call first and realize in module that corresponding method or function go to carry out corresponding the realization and process, wherein, the first definition module that the form of the first service requesting information and definition are quoted by the first user module provides.Be exemplified as, can call other functions or method completes increase if defined in the first definition module, delete and inquire about the interface of member's action, object-the member of above-mentioned action, and member's educational background etc., so when the user goes to increase the member by the first user module, at first search the motion interface that increases the member in its first definition module of quoting, then search the processing module that realizes of above-mentioned motion interface on the service bus of OSGi, finally by what find, first realize the implementation method of this interface in module or the operation that function increases the member accordingly.
Step 203, receive the described first information realized after realization that module returns is processed.
Usually in the first user module interface interchange first by reference in realizing module corresponding method or function carry out corresponding realize processing after, the method or function can return to the information after realizing processing to interface, and represent the information after this realization is processed by the first user module to the user.Be exemplified as, by in step 202, find first after the implementation method of interface or function increase member's operation accordingly in realizing module, first realizes that module returns to this newly-increased membership information to the first user module, by the first user module, to the keeper, shows the member that this is newly-increased.
Step 204, when described the first service requesting information is static constant information, described first user module is directly quoted constant data corresponding to the first service requesting information described in the first corresponding definition module.
Be exemplified as, can call other functions or method completes increase if defined in the first definition module, delete and inquire about the interface of member's action, object-the member of above-mentioned action, and member's educational background etc., so when the user goes to select certain member's sex by the first user module, when the first service requesting information is static constant information, because defined member's sex in the first definition module: man or female, so not needing to go to call first again, the first user module do not realize module, and directly quote corresponding constant data-man or the female of sex in the first definition module, last the first definition module sends to the first user module by these constant data, the first user module is showed user's sex to be selected to the user.
The process flow figure of the service requesting information that Fig. 3 provides for the embodiment of the present invention two.As shown in Figure 3, the method that the embodiment of the present invention provides comprises:
Step 301, the first user module receives the first service requesting information that the user sends.
Particularly, the user carries out the operation that increases, revises and delete or selects a certain constant data by the WEB page.
Step 302, when described the first service requesting information when dynamically realizing information, described first user module realizes that to first of correspondence module sends described the first service requesting information, by described first, realizes that module realizes processing to described the first service requesting information.
Abstract behavior interface entity class and with the behavior relevant constant relevant with behavior is provided in the first definition module, and the first user module is quoted above-mentioned behavior interface.When the first service requesting information when dynamically realizing information, needed certain action, so by the motion interface defined in the first definition module of quoting in the first user module, call first and realize in module that corresponding method or function go to carry out corresponding the realization and process, wherein, the first definition module that the form of the first service requesting information and definition are quoted by the first user module provides.Be exemplified as, can call other functions or method completes increase if defined in the first definition module, delete and inquire about the interface of member's action, object-the member of above-mentioned action, and member's educational background etc., so when the user goes to increase the member by the first user module, at first search the motion interface that increases the member in its first definition module of quoting, then search the processing module that realizes of above-mentioned motion interface on the service bus of OSGi, finally by what find, first realize the implementation method of this interface in module or the operation that function increases the member accordingly.
In other embodiments of the invention; when also there is higher level's definition module in the first definition module; while also having the second definition module, because subordinate's definition module can depend on higher level's definition module usually, quote interface, entity class and constant in higher level's definition module.First realizes when module realizes processing to the first service requesting information also comprising: first realizes that module calls the constant data while processing the first service requesting information from the second definition module.
Step 303, receive the described first information realized after realization that module returns is processed.
Usually in the first user module interface interchange first by reference in realizing module corresponding method or function carry out corresponding realize processing after, the method or function can return to the information after realizing processing to interface, and represent the information after this realization is processed by the first user module to the user.Be exemplified as, by in step 302, find first after the implementation method of interface or function increase member's operation accordingly in realizing module, first realizes that module returns to this newly-increased membership information to the first user module, by the first user module, to the keeper, shows the member that this is newly-increased.
Step 304, when described the first service requesting information is static constant information, described first user module is directly quoted constant data corresponding to the first service requesting information described in the first corresponding definition module.
Be exemplified as, can call other functions or method completes increase if defined in the first definition module, delete and inquire about the interface of member's action, object-the member of above-mentioned action, and member's educational background etc., so when the user goes to select certain member's sex by the first user module, when the first service requesting information is static constant information, because defined member's sex in the first definition module: man or female, so not needing to go to call first again, the first user module do not realize module, and directly quote corresponding constant data-man or the female of sex in the first definition module, last the first definition module sends to the first user module by these constant data, the first user module is showed user's sex to be selected to the user.
Step 305, the first user module receives the second service requesting information that the user sends.
Particularly; when also there is higher level's definition module-the second definition module in the first definition module; because subordinate's definition module can depend on higher level's definition module usually; quote interface, entity class and constant in higher level's definition module; while not comprising described the second service requesting information that corresponding first user module sends in the first definition module, correspondingly by higher level's definition module realize information or the corresponding constant data after module or higher level's definition module are realized processing to this first user module.
Step 306, when described the second service requesting information when dynamically realizing information, what described first user module was corresponding to the second definition module second realizes that module sends described the second service requesting information, by described second, realizes that module realizes processing to described the second service requesting information.
Because the first definition module is quoted interface, entity class and constant in higher level's definition module, so while not comprising the interface that this dynamically realizes information in the first definition module, while in the first definition module, not comprised the interface of certain action, the motion interface of the second definition module definition of quoting by first user module indirect, call second and realize in module that corresponding method or function go to carry out corresponding the realization and process, wherein, the form of the second service requesting information and definition are provided by the second definition module of first user module indirect referencing.
Step 307, receive the described second information realized after realization that module returns is processed.
Usually after in realizing module by the interface interchange second of indirect referencing in the first user module, corresponding method or function carry out corresponding realization processing, the method or function can return to the information after realizing processing to interface, and represent the information after this realization is processed by the first user module to the user.
Step 308, when described the second service requesting information is static constant information, constant data corresponding to the second service requesting information described in described first user module indirect referencing the second definition module.
Be exemplified as, higher level's definition module that the second definition module is the first definition module, and defined in the second definition module and can call other functions or method and complete increase, delete and the interface of inquiry member action, the object-member of above-mentioned action, and member's sex: man or female; So when the user goes to select certain member's sex by the first user module, when the second service requesting information is static constant information, because there is no the information that definition is relevant with the member in the first definition module, but defined the information relevant with the member in the second definition module that it is quoted, so corresponding constant data-man or female of sex in first user module indirect referencing the second definition module, the second last definition module sends to the first user module by these constant data, and the first user module is showed user's sex to be selected to the user.
It should be noted that, step 301 to step 304 and the sequencing of step 305 to step 308 do not limit.
At first before processing service requesting information, need to carry out according to demand Module Division, Fig. 4 is the result schematic diagram that the new Design Mode lower module of OSGi is divided.As shown in Figure 4, can be divided into according to demand member management module, service order management module and push three modules of administration module, wherein the member management module belongs to basic module; Order to need rely on the member, because need to judge whether the member exists when ordering, so the service order management module depends on the member management module; Push and depend on member and order simultaneously, because push, need to obtain order relations from the service order management module, coupling member interest is carried out the content propelling movement, so push management, relies on member management module and service order management module simultaneously.In Fig. 4, each module include the definition submodule, realize submodule and represent submodule three parts, three parts that belong to the member management module can be expressed as respectively: the member defines submodule 401, the member realizes that submodule 402 and member represent submodule 403; Three parts that belong to the service order management module can be expressed as: order definition submodule 404, order and realize that submodule 405 and order represent submodule 406; Belonging to three parts that push administration module can be expressed as: push definition submodule 407, push and realize that submodule 408 and propelling movement represent submodule 409.
It should be noted that member management module, service order management module and push administration module and need to determine according to demand the information that it specifically comprises below reach to the dependence of each submodule the function that other submodules are provided and are elaborated.
Member management module: from keeper's angle, need to realize safeguarding (comprising that the member increases, revises, inquires about) of member, so defining in submodule 401, the member specifically comprises that calling other can realize that the member increases, the member revises and the interface of member's query function, also comprise the operand-member while realizing above-mentioned functions, and the constant information of the static state relevant with the member, be exemplified as: member's sex, the zone at member place and member's educational background etc., externally other modules provide the interface of quoting its internal information simultaneously; The member realizes in submodule 402 needing the interface that the member is defined to definition in submodule 401 to be realized, service bus issuing service at OSGi, provide concrete practical function to other modules, rely on the member simultaneously and define submodule 401, according to the member, define the variation of the interface of definition in submodule 401 and correspondingly upgrade; The member represents submodule 403 need to show that to the keeper it is to the executable operation of member by the visual page, quote the function that the member realizes that submodule 402 is achieved, rely on the member and define submodule 401, according to the member, define the variation of interface, entity class and constant in submodule 401 and correspondingly upgrade.
Service order management module: need to realize the increase of order relations, delete, inquiry, specifically comprise that can call other can realize that order relations increases so order in definition submodule 404, the interface of order relations modification and order relations query function, also comprise the operand-order relations while realizing above-mentioned functions, and the constant information of the static state relevant with order relations, be exemplified as: order approach: business hall, note, phone and self-service door, externally other modules provide the interface of quoting its internal information, rely on the member and define submodule 401, quote the member define submodule 401 in interface, after entity class and constant, define the variation of submodule 401 and correspondingly upgrade according to the member, order realizes in submodule 405 needing the interface to ordering definition in definition submodule 404 to be realized, service bus issuing service at OSGi, provide concrete practical function to other modules, rely on order definition submodule 404 and member simultaneously and define submodule 401, define the variation of the entity class of definition in submodule 401 and constant according to the interface of ordering definition in definition submodule 404 or member and correspondingly upgrade, quoting the function that the member realizes that submodule 402 is achieved simultaneously, order represents submodule 406 need to show that to the keeper it is to order relations and the executable operation of member by the visual page, quoting the member realizes submodule 402 and orders and realize the function that submodule 405 is achieved, rely on to order definition submodule 404(because the inquiry of order relations does not relate to member's details simultaneously, do not define submodule 401 so do not need to rely on the member), according to the variation of ordering interface, entity class and constant in definition submodule 404, correspondingly upgrade.
Push administration module: the realization of propelling movement by system according to pushing the automatic pushed information of rule match member's interest, specifically comprise and can call the establishment that other can realize the task that pushes so push in definition submodule 407, pushed information issue the interface with the query function of pushed information, also comprise operand-pushed information while realizing above-mentioned functions and the state of pushed information, be exemplified as: original state, push neutralization and push end, externally other modules provide the interface of quoting its internal information, rely on the member simultaneously and define submodule 401, define interface in submodule 401 according to the member, the variation of entity class and constant and correspondingly upgrading, propelling movement realizes in submodule 408 needing the interface to pushing definition in definition submodule 407 to be realized, service bus issuing service at OSGi, provide concrete practical function to other modules, rely on the member defines submodule 401 and orders definition submodule 404(and need to obtain order relations from service order management because push simultaneously, coupling member interest is carried out the content propelling movement), define the variation of submodule 401 and the entity class of ordering definition in definition submodule 404 and constant according to the member and correspondingly upgrade, quoting the member realizes submodule 402 and orders and realize the function that submodule 405 is achieved, propelling movement represents submodule 409 need to show that to the keeper it is to the executable operation of pushed information by the visual page, rely on and push definition submodule 407, correspondingly upgrade according to the variation that pushes interface, entity class and constant in definition submodule 407, quote to push and realize the function that submodule 408 is achieved.
The process flow figure of the service requesting information that Fig. 5 provides for the embodiment of the present invention three.In the present embodiment the first definition module, first realize module and first user module and the second definition module, second realize module and the second line module take respectively order definition submodule 404 in Fig. 4, order and realize that submodule 405 and order represent submodule 406 and the member defines submodule 401, the member realizes that submodule 402 and member represent submodule 403 as example, the member defines submodule 401 for ordering higher level's definition module of definition submodule 404, as shown in Figure 5, the method that the embodiment of the present invention provides comprises:
Step 501, order and represent the first service requesting information that submodule 406 receives user's transmission.
Order definition submodule 404, order and realize that submodule 405 and order represent submodule 406 and jointly realized the management of keeper to order relations, the keeper represents submodule 406(WEB visual page by order) inquire about order approach (as business hall, note etc.) or increase, delete order relations etc.
Step 502,, order and represent submodule 406 and realize that to order submodule 405 sends these first service requesting information when dynamically realizing information when the first service requesting information, by order, realizes that 405 pairs of these the first service requesting information of submodule realize processing.
Particularly, order represents submodule 406 and receives increase, deletes or during the request of inquiry order relations, at first search the motion interface of its order definition submodule 404 definition of quoting, then search the realization of above-mentioned motion interface and process submodule on the service bus of OSGi, finally by the order found, realize that the implementation method of this interface in submodule 405 or function carry out the corresponding processing that realizes, wherein, call order and realize that the implementation method of interface in submodule 405 or form and the definition of function provide by ordering definition submodule 404.
Step 503, order and to represent submodule 406 and receive the information realized after realization that submodule 405 returns is processed of ordering.
Be exemplified as, order realizes that the function that submodule 405 is realized is to increase order relations, add corresponding order relations information in database after, order realizes that submodule 405 represents submodule 406 to order and sends this object information, and order represents submodule 406 and represents this newly-increased order relations to the keeper.
Step 504, when the first service requesting information is static constant information, order represents submodule 406 and directly quotes constant data corresponding to the first service requesting information described in order definition submodule 404.
Particularly, when representing submodule 406, order receives while selecting the order approach, because the order approach belongs to static constant information, only have several approach such as business hall, note, phone and self-service door, directly be documented in and order in definition submodule 404, represent so order the constant data that submodule 406 is directly quoted this order approach, and represent selectable order approach to the keeper.
Step 505, order definition submodule 404 and receive the second service requesting information that the user sends.
Order definition submodule 404 dependence members and define submodule 401, quote the member and defined the information such as interface, entity class and constant in submodule 401, therefore, increase, delete or inquiry member or while selecting member academic when the keeper represents by order the visual page that submodule 406 provides, there is no because order in definition submodule 404 motion interface and the constant information that definition is relevant with the member, so order represents submodule 406, by the motion interface of its indirect referencing, go to obtain the constant data in corresponding object information or indirect referencing higher level definition module.
Step 506, when the second service requesting information when dynamically realizing information, order represents the member that submodule 406 defines submodule 401 correspondences to the member and realizes that submodule 402 sends these second service requesting information, by the member, realizes that 402 pairs of these the second service requesting information of submodule realize processing.
Particularly, because order in definition submodule 404 and there is no the motion interface that definition is relevant with the member, represent so order the corresponding motion interface that submodule 406 is searched its indirect referencing, then search the realization of above-mentioned motion interface and process submodule on the service bus of OSGi, finally by the member who finds, realize that the implementation method of this interface in submodule 402 or function carry out the corresponding processing that realizes, wherein, call the member and realize that the form of the implementation method of interface in submodule 402 or function and definition define submodule 401 by the member and provide.Be exemplified as, when the keeper represents submodule 406 newly-increased member by order, because order the motion interface that there is no the newly-increased member of definition in definition submodule 404, it is its motion interface of directly not quoting newly-increased member, so search the motion interface that the member of its indirect referencing defines newly-increased member in submodule 401, then search the realization of the motion interface of above-mentioned indirect referencing and process submodule on the service bus of OSGi, finally by the member who finds, realize that the function of newly-increased member in submodule 402 completes newly-increased member's operation.
Step 507, the information after receiving realization that the member realizes that submodule 402 returns and processing.
Be exemplified as, the member realizes that the motion interface that submodule 402 is realized is newly-increased member, add corresponding membership information in database after, the member realizes that submodule 402 represents submodule 406 to order and sends this object information, and order represents submodule 406 and represents this newly-increased member to the keeper.
Step 508, when the second service requesting information is static constant information, described order represents submodule 406 indirect referencing members and defines constant data corresponding to the second service requesting information in submodule 401.
Particularly, when order represents submodule 406 and receives the educational background request of selecting the member, because order in definition submodule 404 and there is no the information that definition is relevant with the member, but the member that it is quoted defines in submodule 401 information relevant with the member that defined, and because member's educational background belongs to member's constant information, only has primary school, junior middle school, senior middle school, several situations such as university, directly being documented in the member defines in submodule 401, represent so order the constant data that submodule 406 indirect referencing members define the educational background correspondence of this member in submodule 401, order represents submodule 406 and shows member's to be selected educational background to the keeper.
In other embodiments of the invention, when the keeper represents submodule 406 newly-increased order relations by order, order definition submodule 404 and search the interface of newly-increased order relations, and when by this interface interchange, ordering the method that realizes in submodule 405 or function and realize the function of newly-increased order relations, need to first judge whether the member exists, need to define in submodule 401 and search this member the member so, when this member exists, just complete the establishment of order relations, newly-increased order relations is returned to and orders definition submodule 404, finally by order definition submodule 404, newly-increased order relations is transmitted to order again and represents submodule 406, represent submodule 406 by order and represent this newly-increased order relations to the user.
To sum up, for each submodule of dividing in Fig. 4, when demand changes, each submodule need to be done following renewal:
1) administration page pattern style needs replaces to brand-new sky blue tone: the pattern of administration page only relates to the modification of the submodule of UI type, can complete client's demand by replacing the CSS pattern, the submodule that relates to modification comprises that the member represents submodule 403, order represents submodule 406 and propelling movement represents submodule 409.
2) order relations is deleted and come into force next month: order relations is deleted and is come into force every other month, needs to revise the realization that order relations is deleted, and by extending the concluding time, realizes coming into force every other month, and the submodule that relates to modification comprises ordering realizes submodule 405.
When 3) pushing, not only need the interest according to the member, also need educational background and income in conjunction with the member: while match user interest, educational background, income in the time of propelling movement, need to revise and push the realization of carrying out.Increase the coupling filtercondition when pushing, the submodule that relates to modification comprises pushing realizes submodule 408.
By above analysis can, under the new Design Mode of OSGi, the definition by behavior, realize, represent separation, embody separating of interface and realization simultaneously, what represent and realize separates, the separating of foreground and backstage.Fully guaranteed the clear in job responsibility of each submodule on the framework, do not interfere with each other, dispose upgrading for timely response and the heat of Customization demand, service is not interrupted simultaneously, the very big stability that has improved the services such as telecommunications, internet.
The disposal system schematic diagram of the service requesting information that Fig. 6 provides for the embodiment of the present invention four.In Fig. 6, this system comprises: the first definition module 601, first realizes that module 602, first user module 603, the second definition module 604, second realize that module 605, the second line module 606, the 3rd definition module the 607, the 3rd realize that module 608, the 3rd line module 609, the 4th definition module the 610, the 4th realize module 611, four-function family module 612, wherein, subordinate's definition module that the second definition module 604 and the 3rd definition module 607 are the first definition module 601, subordinate's definition module that the 4th definition module 610 is the 3rd definition module 607.
First user module 603 for: receive the first service requesting information that the user sends; When the first service requesting information when dynamically realizing information, realize that to first of correspondence module 602 sends this first service requesting information, the form of described the first service requesting information and definition are provided by the first definition module 601 of described first user module 603 correspondences, by first, realize that 602 pairs of these the first service requesting information of module realize processing; Receive the first information realized after realization that module 602 is returned is processed; When the first service requesting information is static constant information, directly quote constant data corresponding to this first service requesting information in the first corresponding definition module 601.
It should be noted that, first user module 603 also for: receive the second service requesting information that the user sends; When dynamically realizing information, to second of the second definition module 604 correspondences, realize that module 605 sends these second service requesting information when this second service requesting information, the form of described the second service requesting information and definition are provided by described the second definition module 604; Realize that by second 605 pairs of the second service requesting information of module realize processing; Receive the second information realized after realization that module 605 is returned is processed; When this second service requesting information is static constant information, constant data corresponding to this second service requesting information in indirect referencing the second definition module 604.
In other embodiments of the invention, first realize module 602 also for: when the first service requesting information being realized process, call the constant data while processing this first service requesting information from the second definition module 604.
In a kind of specific embodiment, first user module 603 specifically for: while not comprising the second service requesting information that corresponding first user module 603 sends in the first definition module 601, to second of the second definition module 604 correspondences, realize that module 605 sends these second service requesting information.
It should be noted that, the 3rd definition module 607 and the first definition module 601, the 4th definition module 610 and the 3rd definition module 607 communicate by letter and the communication class of the second definition module 604 and the first definition module 601 seemingly, do not do repetition at this.
First user module 603 receives the first service requesting information that the user sends; When the first service requesting information when dynamically realizing information, realize that to first of correspondence module 602 sends this first service requesting information, the form of described the first service requesting information and definition are provided by the first definition module 601 of described first user module 603 correspondences, by first, realize that 602 pairs of these the first service requesting information of module realize processing; Receive the first information realized after realization that module 602 is returned is processed; When the first service requesting information is static constant information, directly quote constant data corresponding to this first service requesting information in the first corresponding definition module 601.Realized thus separating of interface and realization, what represent and realize separates, the separating of foreground and backstage, thus improved the hot-swappable ability of module, improved the customization of module and the stability of module service.
Under three sub-modular design, all realizes submodule and represents the definition submodule that submodule only depends on each module, realizes submodule and represents between submodule without any dependence.Any one upgrading reload (because relies on and realizes submodule and represent submodule without any submodule) that more new capital can not cause other submodules of realizing submodule or representing submodule of while.Only having when the definition submodule changes just to cause peripheral submodule to reload, from top we can draw a conclusion: as long as the definition of behavior does not change, this designs the realization of lower behavior and represents variation has occurred, we can accomplish hot loading upgrading, can not affect the behavior of other modules simultaneously.
On the software customizability, representing independently that the design customization of three submodules is stronger gone out, and improved the customization of module, and the upgrading simultaneously represented is upgraded can not have influence on other module service yet, and hot deployment ability also is fully reflected.The representing in the design of fully being dissolved into whole OSGi of behavior under such design, the theory on the heavy backstage of design light foreground of OSGi of having broken tradition.
The professional should further recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software clearly is described, composition and the step of each example described according to function in the above description in general manner.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
The software module that the method for describing in conjunction with embodiment disclosed herein or the step of algorithm can use hardware, processor to carry out, or the combination of the two is implemented.Software module can be placed in the storage medium of any other form known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the foregoing is only the specific embodiment of the present invention; the protection domain be not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (8)

1. the disposal route of a service requesting information, is characterized in that, described method comprises:
The first user module receives the first service requesting information that the user sends;
When described the first service requesting information when dynamically realizing information, described first user module realizes that to first module sends described the first service requesting information, the first corresponding definition module provides by described first user module for the form of described the first service requesting information and definition, by described first, realizes that module realizes processing to described the first service requesting information; Receive the described first information realized after realization that module returns is processed;
When described the first service requesting information is static constant information, described first user module is directly quoted constant data corresponding to the first service requesting information described in the first corresponding definition module.
2. method according to claim 1, is characterized in that, described method also comprises:
The first user module receives the second service requesting information that the user sends;
When described the second service requesting information when dynamically realizing information, what described first user module was corresponding to the second definition module second realizes that module sends described the second service requesting information, the form of described the second service requesting information and definition are provided by described the second definition module, higher level's definition module that described the second definition module is described the first definition module; Realize that by described second module realizes processing to described the second service requesting information; Receive the described second information realized after realization that module returns is processed;
When described the second service requesting information is static constant information, constant data corresponding to the second service requesting information described in described first user module indirect referencing the second definition module.
3. method according to claim 2, it is characterized in that, described first realizes when module realizes processing to described the first service requesting information also comprising: described first realizes that module calls the constant data while processing described the first service requesting information from described the second definition module.
4. method according to claim 2, is characterized in that, what described first user module was corresponding to the second definition module second realizes that module sends described the second service requesting information and specifically comprises:
While not comprising described the second service requesting information that corresponding first user module sends in described the first definition module, what described first user module was corresponding to described the second definition module second realizes that module sends described the second service requesting information.
5. the disposal system of a service requesting information, is characterized in that, described system comprises: the first definition module, first is realized module and first user module;
Described first user module is used for: receive the first service requesting information that the user sends;
When described the first service requesting information when dynamically realizing information, realize that to first module sends described the first service requesting information, the first corresponding definition module provides by described first user module for the form of described the first service requesting information and definition, by described first, realizes that module realizes processing to described the first service requesting information; Receive the described first information realized after realization that module returns is processed;
When described the first service requesting information is static constant information, directly quote constant data corresponding to the first service requesting information described in the first corresponding definition module.
6. system according to claim 5, is characterized in that, described system also comprises: the second definition module, the second line module and second are realized module, wherein, and higher level's definition module that described the second definition module is described the first definition module;
Described first user module is used for: receive the second service requesting information that the user sends;
When described the second service requesting information, when dynamically realizing information, to described the second definition module, corresponding second realizes that module sends described the second service requesting information, and the form of described the second service requesting information and definition are provided by described the second definition module; Realize that by described second module realizes processing to described the second service requesting information; Receive the described second information realized after realization that module returns is processed;
When described the second service requesting information is static constant information, constant data corresponding to the second service requesting information described in indirect referencing the second definition module.
7. system according to claim 6, is characterized in that,
Described first realize module also for: when described the first service requesting information being realized process, call the constant data while processing described the first service requesting information from described the second definition module.
8. system according to claim 6, is characterized in that, described first user module specifically for:
While not comprising described the second service requesting information that corresponding first user module sends in described the first definition module, to described the second definition module, corresponding second realizes that module sends described the second service requesting information.
CN201310343111.8A 2013-08-07 2013-08-07 The processing method of service requesting information and system Active CN103425495B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310343111.8A CN103425495B (en) 2013-08-07 2013-08-07 The processing method of service requesting information and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310343111.8A CN103425495B (en) 2013-08-07 2013-08-07 The processing method of service requesting information and system

Publications (2)

Publication Number Publication Date
CN103425495A true CN103425495A (en) 2013-12-04
CN103425495B CN103425495B (en) 2016-08-31

Family

ID=49650289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310343111.8A Active CN103425495B (en) 2013-08-07 2013-08-07 The processing method of service requesting information and system

Country Status (1)

Country Link
CN (1) CN103425495B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274271A (en) * 2020-01-13 2020-06-12 北京奇艺世纪科技有限公司 Information management device and method, electronic equipment and storage medium
CN111459991A (en) * 2020-04-15 2020-07-28 中国银行股份有限公司 Information query method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051525A (en) * 2011-10-14 2013-04-17 海尔集团公司 Gateway service middleware system and method as well as device and system comprising gateway service middleware system
US20130145381A1 (en) * 2010-08-25 2013-06-06 Hitachi Solutions, Ltd. Web api server program, web api publication method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130145381A1 (en) * 2010-08-25 2013-06-06 Hitachi Solutions, Ltd. Web api server program, web api publication method
CN103051525A (en) * 2011-10-14 2013-04-17 海尔集团公司 Gateway service middleware system and method as well as device and system comprising gateway service middleware system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘文波: "《基于OSGI的数字家庭网关设计》", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274271A (en) * 2020-01-13 2020-06-12 北京奇艺世纪科技有限公司 Information management device and method, electronic equipment and storage medium
CN111459991A (en) * 2020-04-15 2020-07-28 中国银行股份有限公司 Information query method and device
CN111459991B (en) * 2020-04-15 2023-04-07 中国银行股份有限公司 Information query method and device

Also Published As

Publication number Publication date
CN103425495B (en) 2016-08-31

Similar Documents

Publication Publication Date Title
CN108052321B (en) Method for automatically generating intelligent contract of block chain based on configuration information
CN100424637C (en) System and method for building wireless applications
US20130117319A1 (en) Objects in a storage environment for connected applications
CN1591445A (en) Generic method for defining resource configuration profiles in provisioning systems
Botterweck et al. EvoFM: feature-driven planning of product-line evolution
CN106933837A (en) A kind of database table model and creation method
CN101741614B (en) Equivalent type node manager and equivalent type node management method
CN101320365A (en) Method and apparatus for dynamic layout of document page
CN102789317A (en) Method and device for accelerating text input
CN103645908A (en) Full life circle development achievement system of intemetware
CN103092917B (en) A kind of customized label realizes the querying method of browser page business dictionary
CN105630267A (en) View interface resource management method and apparatus
CN101021876A (en) Data management method, equipment and data bank system
KR20130110610A (en) Method of constructing database, server performing the same and storage media storing the same
CN103036855A (en) Achievement device and method of authority management
CN113407284A (en) Navigation interface generation method and device, storage medium and electronic equipment
US8239371B2 (en) Fast search views over business objects
CN114461209A (en) Page configuration and switching method, device, equipment and storage medium
CN103425495A (en) Method and system for processing service request information
CN103984554A (en) Software design document generating method and device
KR20160103842A (en) System and Method for managing product using business rule management system
US6115045A (en) Information processing system and a network type information processing system
CN101685395A (en) Object property processing method of product data management system
CN100410877C (en) Method of operating interface of definition to object mould
CN104111768A (en) Interactive window, methods and systems for defining, quoting and synchronizing interactive windows

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200210

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210012 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Patentee before: Huawei Technologies Co.,Ltd.

TR01 Transfer of patent right