Treatment method of structural conflict in AOP application program based on metadata and reflection mechanism

A reflection mechanism and application technology, applied in the direction of program control devices, etc., can solve problems such as connection point mismatch, and achieve the effects of strong versatility, improved reusability, and flexible execution methods.
CN101930365AInactive Publication Date: 2010-12-29WUHAN INSTITUTE OF TECHNOLOGY

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
WUHAN INSTITUTE OF TECHNOLOGY
Publication Date
2010-12-29
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to a treatment method of structural conflict in an AOP application program based on metadata and a reflection mechanism, which comprises the following steps: 1) taking a meta-layer in the structure of a reflection system as a middle layer between a basic program and an Aspect; 2) creating an XML file used for describing logic information, physical information and mapping relation between the two which correspond to the basic program in a conceptual layer for a type or the method which needs to be reflected in the basic program; 3) adding or updating a label for the basic program; 4) updating the physical information which corresponds to the logic information according to the logic information in the XML file; and 5) automatically generating a meta-layer program by a conversion program and completing the realization of refining and reflection in the structure of the reflection system by the metal-layer program. The treatment method has the benefits of being capable of flexibly selecting the size of reflection particle size, leading the implementation way of the program to be more flexible, having no limit requirements of AOP language and leading the using method to have stronger universality.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of detection and processing of key problems faced by aspect-oriented software in practical applications, in particular to a method for processing structural conflicts in AOP application programs based on metadata and reflection mechanisms. Background technique

[0002] Aspect-Oriented Programming AOP (Aspect-Oriented Programming) [1][2] It can be considered as a supplement and improvement to object-oriented technology, which makes up for the deficiency of object-oriented programming method in crossing multiple modules. By introducing Aspect, AOP encapsulates behaviors (cross-cutting concerns) that affect multiple classes into a reusable module, thereby eliminating the code confusion and dispersion problems caused by OOP, reducing the coupling between classes and making software Easier to operate, maintain, reuse and expand. At present, with the continuous development of information technology, the method of aspect-o...

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