Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A scripting language extension method and event bus architecture

A technology of event bus and extension method, which is applied in the field of script language extension method and event bus architecture, can solve the problems of increasing code amount and large repetitive code, and achieve the effect of reducing code amount

Active Publication Date: 2018-11-30
KINGDEE SOFTWARE(CHINA) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Events and event extensions by rewriting code or calling back code will inevitably result in a large amount of repeated code, thereby increasing the amount of code

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
  • A scripting language extension method and event bus architecture
  • A scripting language extension method and event bus architecture
  • A scripting language extension method and event bus architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] Embodiments of the present invention provide a method for extending a script language and an event bus architecture, which will be described in detail below.

[0043] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.

[0044] The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects and not necessarily Describe a particular order or sequence. It is to be understood that the terms so used are interchangeable...

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 invention discloses a script language extension method and an event bus framework. The method comprises events, wherein the events comprises fixed handler processing mechanisms and extension handlers; the method also comprises following steps: receiving an event register request by an event bus; registering the events by the event bus according to the event register request; sorting the fixed handler processing mechanisms and the extension handlers; receiving an event triggering instruction by the event bus; and invoking the fixed handler processing mechanisms and / or the extension handlers by the event bus according to the event triggering instruction. According to the method and the framework of the invention, the events are managed by the event bus; the extension handlers are inserted into the events; therefore, the events do not need to duplicate massive codes; and the code quantity is reduced.

Description

technical field [0001] The invention relates to the technical field of script language, in particular to a script language extension method and an event bus architecture. Background technique [0002] JavaScript (literal translation scripting language) is an object-based and event-driven and relatively secure client-side scripting language. Smooth and beautiful browsing effect. [0003] At present, the development of JavaScript is based on the process of linear development, and generally does not provide events, nor does it provide a mechanism for inserting extension points. If events are needed, events and event extensions are generally implemented by rewriting code or callback code. [0004] Events and event extensions by rewriting codes or calling back codes will inevitably result in a large amount of repeated codes, thereby increasing the amount of codes. Contents of the invention [0005] In order to solve the above technical problems, the present invention provides...

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): G06F8/38G06F8/51
CPCG06F8/38G06F8/51
Inventor 苗超陈纪东
Owner KINGDEE SOFTWARE(CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products