CN101770361B - Method and data processing equipment for realizing filtration of callback events of derivative member - Google Patents
Method and data processing equipment for realizing filtration of callback events of derivative member Download PDFInfo
- Publication number
- CN101770361B CN101770361B CN 200810208050 CN200810208050A CN101770361B CN 101770361 B CN101770361 B CN 101770361B CN 200810208050 CN200810208050 CN 200810208050 CN 200810208050 A CN200810208050 A CN 200810208050A CN 101770361 B CN101770361 B CN 101770361B
- Authority
- CN
- China
- Prior art keywords
- callback events
- filtration
- derivative member
- software system
- callback
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The invention provides a method for realizing the filtration of callback events of a derivative member. In the method, unnecessary and redundant callback events thrown by a base member are intercepted in the layer of the derivative member by setting filtering functions for the derivative member. The method improves the efficiency in processing the callback events of the member and avoids the waste of system resources. The invention also provides data processing equipment for realizing the filtration of the callback events of the derivative member.
Description
Technical field
The present invention relates to a kind of method and apparatus of realizing that the member callback events is processed, particularly relate to a kind of method and data processing equipment of realizing filtration of callback events of derivative member.
Background technology
Along with the development of computer software technology, the component-based software technology is more and more universal, and the corresponding embedded OS of various component technologies and these component technologies of support also arises at the historic moment.For example, the component technology based on matrix component and derivative member framework shown in Fig. 1, in this framework, derivative member is inherited in matrix component, be used for to realize the specific function based on matrix component, and based on the embedded OS of this framework owing to exist the inheritance of matrix component and derivative member to realize ageing, specific aim, the convenience of operation.
In this framework, matrix component all callback events that are excited of usually can dishing out, yet; derivative member generally is used for specific function; for the user, all callback events that do not need the as received basis member to dish out, and only need to receive the effective callback events corresponding with derivative member.At this moment, if there is not strobe utility, can only abandon unwanted callback events by the user oneself of derivative member, both waste system resource (processing unnecessary unnecessary callback events), affect again user's treatment effeciency (needing the unnecessary callback events of extra process).
Summary of the invention
In view of above content, be necessary to provide a kind of method that realizes filtration of callback events of derivative member, to improve member callback events treatment effeciency and the system resource that avoids waste.
In addition, also be necessary to provide a kind of data processing equipment of realizing filtration of callback events of derivative member, to improve member callback events treatment effeciency and the system resource that avoids waste.
A kind of method that realizes filtration of callback events of derivative member is applicable to move the data processing equipment of component software system.The method comprising the steps of: (a) excite the function of matrix component callback events by the component software system definition, and the filtration of callback events of derivative member function in matrix component is inherited in definition; (b) component software system is by the function that excites the matrix component callback events of definition, the callback events of the matrix component that supervisory user excites; (c) when monitoring the user and excited the callback events of matrix component, whether component software system states the filtration of callback events key word by the file analysis derivative member of the interface that is used for statement matrix component and derivative member and realizes; (d) when derivative member has been stated the filtration of callback events key word, the filtration of callback events of derivative member function of component software system call definition is tackled filtration with the callback events that the user is excited; (e) component software system is analyzed the callback events that the user that whether dishes out excites according to the operation result of the filtration of callback events of derivative member function of definition; (f) when needs are dished out the callback events that the user excites, the component software system callback events that the user excites of dishing out.
A kind of device of realizing filtration of callback events of derivative member, be applicable to move the data processing equipment of component software system, it is characterized in that, this device comprises: be used for exciting by the component software system definition function of matrix component callback events, and definition is inherited in the unit of the filtration of callback events of derivative member function of matrix component; Be used for component software system by the function that excites the matrix component callback events of definition, the unit of the callback events of the matrix component that supervisory user excites; Be used for when monitoring the user and excited the callback events of matrix component, whether component software system states the unit of filtration of callback events key word by the file analysis derivative member of searching the interface of realizing for statement matrix component and derivative member; Be used for when derivative member has been stated the filtration of callback events key word, the filtration of callback events of derivative member function of component software system call definition is tackled the unit of filtration with the callback events that the user is excited; Be used for component software system according to the operation result of the filtration of callback events of derivative member function of definition, analyze the unit of the callback events that the user that whether dishes out excites; And be used for when needs are dished out the callback events that the user excites the dish out unit of the callback events that the user excites of component software system.
Compare prior art, the present invention is by setting filter function for derivative member in component software system, at unnecessary, the unnecessary callback events that derivative member one deck interception matrix component is dished out, improved the treatment effeciency of member callback events, avoided the waste of system resource.
Description of drawings
Fig. 1 is matrix component and derivative member configuration diagram.
Fig. 2 is the implementation process flow diagram that the present invention realizes the method preferred embodiment of filtration of callback events of derivative member.
Fig. 3 is the strobe utility synoptic diagram that the present invention uses callback events of derivative member.
Embodiment
As shown in Figure 2, be the implementation process flow diagram that the present invention realizes the method preferred embodiment of filtration of callback events of derivative member.The method is applicable to data processing equipment, for example: computing machine, mobile phone, personal digital assistant (Personal Digital Assistant, PDA) etc.Described data processing equipment comprises storer and processor.This storer is used for the component software system that stored energy is realized the method.This processor is used for the component software system of operation storage to realize the method.
In the present embodiment, be take matrix component CForm and inherit in the derivative member CDialog of CForm as example and describe; In other embodiments of the invention, the performance of other matrix components and derivative member and CForm and CDialog performance are similar, therefore, in the situation of not paying creative work, those skilled in the art should by take CForm and CDialog as the performance of example, realize that easily every other matrix component and derivative member are based on the performance of technical solution of the present invention.
In the present embodiment, use the necessity explanation of the strobe utility of callback events of derivative member: in component software system, the matrix component CForm mouse click event (Click event) Anywhere of can dishing out in the Form scope, and create one when inheriting in the derivative member CDialog of CForm object as the user, can register corresponding Click event (for example: the Click event of button is clicked in registration).For the CForm matrix component, user's mouse Anywhere click event in the Form scope all can be dished out, use the user of CDialog derivative member then may only be concerned about the Click event (namely only being concerned about the Click event of registration) of clicking button, at this moment just can utilize the strobe utility of callback events of derivative member to tackle unnecessary Click event.For example, strobe utility shown in Figure 3, described unnecessary Click event can be identified invalid and be abandoned by the backstage, and the Click event of described click button can be identified effectively and be dished out.
It below is the content that progressively realizes the strobe utility of above-mentioned callback events of derivative member in conjunction with present embodiment.
Step S10 makes up in the interface at the function that provides for component software system, and definition excites the function of matrix component callback events, and definition is inherited in the filter function of the callback events of derivative member of matrix component.
In present embodiment step S10, can define and excite the function of matrix component callback events as follows:
In present embodiment step S10, it is as follows to define the filter function of inheriting in the callback events of derivative member of matrix component:
Step S11, component software system is by the function that excites the matrix component callback events of definition, the callback events of the matrix component that supervisory user excites.Excited in the callback events situation of matrix component monitoring the user, changed over to and carry out following step S12.
Step S12, whether component software system states the filtration of callback events key word by searching interface pointer (Probe) analysis derivative member.In component software system, usually the file of suffix car by name is for the interface of stating that matrix component and derivative member are realized, for example: the file state of suffix car by name a derivative member have the filtration of callback events interface, then this derivative member object the inside just comprises the pointer that the filtration of callback events interface is corresponding.
In present embodiment step S12, stated that the file that derivative member has a suffix car by name of filtration of callback events interface can comprise such as undefined content:
In present embodiment step S12, whether component software system states that by searching interface pointer (Probe) analysis derivative member the executive routine of filtration of callback events key word can be defined as follows:
Stated that at derivative member the filtration of callback events key word (for example: in the time of above-mentioned " IClickEvent "), change over to and carry out following step S13; Perhaps, when derivative member is not stated the filtration of callback events key word, change over to and carry out following step S16.
Step S13, the filtration of callback events of derivative member function of component software system call definition is tackled filtration with the callback events that the user is excited.
Step S15, component software system analyze the callback events that the user that whether dishes out excites according to the operation result of the filtration of callback events of derivative member function of definition.
When needs are dished out the callback events that the user excites, change over to and carry out following step S16; Perhaps, when needs were abandoned the callback events that the user excites, component software system was abandoned the callback events that the user excites, and flow process finishes.
Step S16, the component software system callback events that the user excites of dishing out.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to preferred embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.
Claims (12)
1. method that realizes filtration of callback events of derivative member is applicable to move the data processing equipment of component software system, it is characterized in that the method comprising the steps of:
Excite the function of matrix component callback events by the component software system definition, and define the filtration of callback events of derivative member function of inheriting in matrix component;
Component software system is by the function that excites the matrix component callback events of definition, the callback events of the matrix component that supervisory user excites;
When monitoring the user and excited the callback events of matrix component, whether component software system states the filtration of callback events key word by the file analysis derivative member of searching the interface of realizing for statement matrix component and derivative member;
When derivative member had been stated the filtration of callback events key word, the filtration of callback events of derivative member function of component software system call definition was tackled filtration with the callback events that the user is excited;
Component software system is analyzed the callback events that the user that whether dishes out excites according to the operation result of the filtration of callback events of derivative member function of definition; And
When needs are dished out the callback events that the user excites, the component software system callback events that the user excites of dishing out.
2. the method for realization filtration of callback events of derivative member as claimed in claim 1 is characterized in that, described data processing equipment comprises computing machine, mobile phone, personal digital assistant.
3. the method for realization filtration of callback events of derivative member as claimed in claim 1 or 2 is characterized in that, described component software system is embedded OS.
4. the method for realization filtration of callback events of derivative member as claimed in claim 1 or 2 is characterized in that, the method also comprises step:
When derivative member is not stated the filtration of callback events key word, directly change over to and carry out the component software system callback events that the user excites of dishing out.
5. the method for realization filtration of callback events of derivative member as claimed in claim 1 or 2 is characterized in that, the method also comprises step:
When the callback events that the user that do not need to dish out excites, component software system is abandoned the callback events that the user excites.
6. the method for realization filtration of callback events of derivative member as claimed in claim 1 is characterized in that, described matrix component is CForm, and described derivative member is CDialog.
7. device of realizing filtration of callback events of derivative member is applicable to move the data processing equipment of component software system, it is characterized in that this device comprises:
Be used for exciting by the component software system definition function of matrix component callback events, and definition is inherited in the unit of the filtration of callback events of derivative member function of matrix component;
Be used for component software system by the function that excites the matrix component callback events of definition, the unit of the callback events of the matrix component that supervisory user excites;
Be used for when monitoring the user and excited the callback events of matrix component, whether component software system states the unit of filtration of callback events key word by the file analysis derivative member of searching the interface of realizing for statement matrix component and derivative member;
Be used for when derivative member has been stated the filtration of callback events key word, the filtration of callback events of derivative member function of component software system call definition is tackled the unit of filtration with the callback events that the user is excited;
Be used for component software system according to the operation result of the filtration of callback events of derivative member function of definition, analyze the unit of the callback events that the user that whether dishes out excites; And
Be used for when needs are dished out the callback events that the user excites the dish out unit of the callback events that the user excites of component software system.
8. the device of realization filtration of callback events of derivative member as claimed in claim 7 is characterized in that, described data processing equipment comprises computing machine, mobile phone, personal digital assistant.
9. such as the device of claim 7 or 8 described realization filtration of callback events of derivative member, it is characterized in that described component software system is embedded OS.
10. such as the device of claim 7 or 8 described realization filtration of callback events of derivative member, it is characterized in that this device also comprises:
Be used for when derivative member is not stated the filtration of callback events key word, directly change over to and carry out the dish out unit of the callback events that the user excites of component software system.
11. the device such as claim 7 or 8 described realization filtration of callback events of derivative member is characterized in that, this device also comprises:
During the callback events that is used for exciting the user that do not need to dish out, component software system is abandoned the unit of the callback events that the user excites.
12. the device of realization filtration of callback events of derivative member as claimed in claim 7 is characterized in that, described matrix component is CForm, and described derivative member is CDialog.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810208050 CN101770361B (en) | 2008-12-29 | 2008-12-29 | Method and data processing equipment for realizing filtration of callback events of derivative member |
HK10109885.7A HK1143438A1 (en) | 2008-12-29 | 2010-10-19 | A method and a mechanism for a derived-class instance to filter a callback event generated |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810208050 CN101770361B (en) | 2008-12-29 | 2008-12-29 | Method and data processing equipment for realizing filtration of callback events of derivative member |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101770361A CN101770361A (en) | 2010-07-07 |
CN101770361B true CN101770361B (en) | 2013-04-03 |
Family
ID=42503243
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200810208050 Expired - Fee Related CN101770361B (en) | 2008-12-29 | 2008-12-29 | Method and data processing equipment for realizing filtration of callback events of derivative member |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101770361B (en) |
HK (1) | HK1143438A1 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512370A (en) * | 2002-12-31 | 2004-07-14 | ����̩ƽ | User self-defining event mechanism based on structure |
CN1908896A (en) * | 2006-08-24 | 2007-02-07 | 上海科泰世纪科技有限公司 | Component inheritance method |
-
2008
- 2008-12-29 CN CN 200810208050 patent/CN101770361B/en not_active Expired - Fee Related
-
2010
- 2010-10-19 HK HK10109885.7A patent/HK1143438A1/en not_active IP Right Cessation
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512370A (en) * | 2002-12-31 | 2004-07-14 | ����̩ƽ | User self-defining event mechanism based on structure |
CN1908896A (en) * | 2006-08-24 | 2007-02-07 | 上海科泰世纪科技有限公司 | Component inheritance method |
Also Published As
Publication number | Publication date |
---|---|
HK1143438A1 (en) | 2010-12-31 |
CN101770361A (en) | 2010-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8028277B2 (en) | Self-healing system and method for code optimization in a computing environment | |
CN107408180B (en) | Detection of malicious invocation of application program interface calls | |
US10425349B2 (en) | Idle worker-process page-out | |
US8140591B2 (en) | Enabling workflow awareness within a business process management (BPM) system | |
CN102103406B (en) | The network event process that operating system is irrelevant | |
US8417744B2 (en) | Techniques to manage a collection of objects in heterogeneous environments | |
JP6870158B2 (en) | Methods and devices for processing memory and storage media | |
WO2013013559A1 (en) | Screen unlocking method and device thereof | |
CN1710535A (en) | GIS application system and development method thereof | |
US20080295113A1 (en) | Managing memory resident objects to optimize a runtime environment | |
US20140137131A1 (en) | Framework for java based application memory management | |
WO2019137252A1 (en) | Memory processing method, electronic device, and computer-readable storage medium | |
WO2020232871A1 (en) | Method and device for microservice dependency analysis | |
CN103164653A (en) | Apparatus and method for analyzing malware in data analysis system | |
US9658903B2 (en) | Event processing method and apparatus | |
CN110333917A (en) | Data processing method, device, equipment and readable storage medium storing program for executing based on micro services | |
CN110737604A (en) | method, device, electronic equipment and storage medium for automatically cleaning memory | |
US10740166B2 (en) | Thread based dynamic data collection | |
CN101770361B (en) | Method and data processing equipment for realizing filtration of callback events of derivative member | |
CN102591714B (en) | Process calling method, system and application server | |
CN109784054B (en) | Behavior stack information acquisition method and device | |
CN111376255B (en) | Robot data acquisition method and device and terminal equipment | |
CN111522645A (en) | Object processing method and device, electronic equipment and computer-readable storage medium | |
CN110888840A (en) | File query method, device, equipment and medium in distributed file system | |
CN116467066A (en) | Method and device for allocating number bin resources, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1143438 Country of ref document: HK |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130403 Termination date: 20151229 |
|
EXPY | Termination of patent right or utility model |