Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for calling software module

A software module and interface calling technology, applied in the computer field, can solve the problems caused by indetermination and unidentifiable recipients

Active Publication Date: 2010-09-08
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Since the receiver is hooked to the event center through the same interface, the receiver cannot identify the significance of the event that caused the receiver to be called through this interface, that is, the receiver cannot determine which event source triggered the event that caused the receiver to be called

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for calling software module
  • Method and device for calling software module
  • Method and device for calling software module

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] In this embodiment, the way for the extender to connect to the extension point is to obtain the extension center interface, and register the extender's own interface in the list of extension interfaces to be attached to the extension point.

[0031] The following uses the "main panel" in the instant messaging tool as the extender, and the "contact management module" as the extension point carrier. The method described in the first embodiment of the method by the extender is used to connect the extension point and the extension point carrier is called through the extension point interface. The specific method of the extender.

[0032] Figure 1 is a flowchart of the method for hooking the extension point of "Contact Information Change" on the "Main Panel". As shown in Figure 1, the method specifically includes:

[0033] Step 101, the "main panel" acquires the expansion center interface.

[0034] Step 102, the "main panel" obtains the extension point interface.

[0035] In this ste...

Embodiment 2

[0048] In this embodiment, the way for the extender to connect to the extension point is as follows: the extender obtains the extension center interface, and registers the component information of the extender to the extender provider to be connected to the extension point.

[0049] The following uses the "marketing management module" in the instant messaging tool as the extender, and the "system message management module" as the extension point carrier. The method described in the second embodiment of the method used by the extender to connect the extension point and the extension point carrier through the extension point interface Call the specific method of the extender.

[0050] Figure 3 is a flowchart of the method for "marketing management module" to hook up the extension point of "system message event". As shown in Figure 3, the method specifically includes:

[0051] Step 301, the "marketing management module" sets its own component information.

[0052] In this step, the "mark...

Embodiment 3

[0065] In this embodiment, the way for the extender to hook up the extension point includes both the method described in Method Embodiment 1 and the method described in Method Embodiment 2. At this time, each extension point interface corresponds to an extender agent, and the extender The agent stores an extender interface list and an extender provider list.

[0066] The following describes the specific method for the extension point carrier to invoke the extender in the third method embodiment.

[0067] Fig. 5 is a flowchart of a method for invoking an extender by an extension point carrier in method embodiment 3. As shown in Fig. 5, the method specifically includes:

[0068] Step 501: The extension point carrier obtains an extension center interface.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a method and a device used for realizing software module invoking. The method comprises the following steps: an extension center is arranged; corresponding relationship between extension point identification ID and extension point interfaces is memorized in the extension center; an extension point carrier and an extender respectively hitch the extension points; the extension point carrier obtains the extension center interface, searches the extension point interfaces in the extension center corresponding to the extension point ID of the extension point carrier and invokes the extender which hitches the extension points by the extension point interfaces. By the invention, the invoked module can recognise and trigger the meaning of the invoked eventby invoking the interfaces.

Description

Technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for implementing software module invocation. Background technique [0002] Computer software usually contains multiple modules, which can call each other. In the prior art, when a predetermined event is triggered, each module uses a direct call method to call other modules, where the module that issues the call action is called the event source, and the called module is called the receiver. This direct call method makes the coupling between the event source and the receiver high, which is not conducive to software upgrades. [0003] In order to reduce the degree of coupling between the event source and the receiver, an event center solution is introduced in the prior art to implement the invocation of software modules. [0004] In the event center solution, the event source triggers the event through the event center, and the receiver connects to the event ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44
Inventor 王文涛刘晓聪
Owner TENCENT TECH (SHENZHEN) CO LTD