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

Java-based dynamic command loading method and device

A technology of dynamic loading and command, applied in the direction of program control device, program loading/starting, program control design, etc., can solve the problems of high system coupling, unfavorable expansion and maintenance, difficulty in expansion, maintenance, and high cost of program code maintenance

Inactive Publication Date: 2017-03-22
GUANGDONG ESHORE TECH
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In practical applications, the general approach is to write the implementation class of each function, and load different function classes to realize related functions according to the command. This is highly coupled for architecture design, and it is not easy to expand and maintain in the software life cycle.
Too high system coupling is not conducive to expansion and maintenance. Modifying the content of a class requires modifying multiple related classes. The maintenance cost of the program code is very high.

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
  • Java-based dynamic command loading method and device
  • Java-based dynamic command loading method and device
  • Java-based dynamic command loading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] 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 part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0042] It should be noted that the descriptions involving "first", "second" and so on in the present invention are only for the purpose of description, and should not be understood as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In addition, the technical ...

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 java-based dynamic command loading method and device. The java-based dynamic command loading method comprises the following steps of: creating an instance of an interface implementation class, wherein the instance of the interface implementation class comprises at least one command annotation; receiving a dynamic loading command, wherein the dynamic loading command comprises a command name; and matching the command name to be dynamically loaded with the command annotation of the instance of the interface implementation class, and if the command name to be dynamically loaded is successfully matched with the command annotation of the instance of the interface implementation class, calling the instance, corresponding to the command annotation, of the interface implementation class. The method and device disclosed by the invention can effectively reduce the coupling degree of programs and are beneficial for improving the expansion capability of the programs.

Description

technical field [0001] The invention relates to the technical field of software architecture, in particular to a java-based method and device for dynamically loading commands. Background technique [0002] A software architecture is a set of related abstract patterns used to guide the design of all aspects of a large software system. [0003] Java annotations: annotations (Annotation), also known as metadata. A code-level specification. It is a feature introduced by JDK1.5 and later versions, and it is at the same level as classes, interfaces, and enumerations. It can be declared in front of packages, classes, fields, methods, local variables, method parameters, etc., to explain and comment on these elements. Annotations exist in the code with ‘@annotation name’. According to the number of annotation parameters, we can divide annotations into three categories: tag annotations, single-value annotations, and complete annotations. None of them will directly affect the seman...

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 Applications(China)
IPC IPC(8): G06F9/445
CPCG06F9/44521
Inventor 戚腾飞褚博文华德锋刘昌卿王明鹏
Owner GUANGDONG ESHORE TECH
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