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.

Inactive Publication Date: 2010-12-29
WUHAN INSTITUTE OF TECHNOLOGY
View PDF1 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0018] The problem to be solved by the present invention is to propose a method for dealing with structural conflicts in AOP applications based on metadata and reflection mechanisms for the above-mentioned prior art, to solve the problem of connection point mismatch caused by the evolution of basic programs

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
  • Treatment method of structural conflict in AOP application program based on metadata and reflection mechanism
  • Treatment method of structural conflict in AOP application program based on metadata and reflection mechanism
  • Treatment method of structural conflict in AOP application program based on metadata and reflection mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The present invention will be further described below in conjunction with embodiment, but can not be regarded as the limitation of the present invention.

[0044] as attached figure 1 , shown in 2, the present invention comprises the following steps:

[0045] (1) Based on the reflection architecture, the meta-layer in the reflection architecture is regarded as the intermediate layer (concept layer) of the basic program and Aspect, so as to realize the decoupling of the entry point definition and the basic program structure; the cut-in The definition of the point is to use logical information corresponding to the physical information related to the reflection class or reflection method in the basic program. In order to match the connection point defined in the pointcut, the name of the generated meta object and its method uses logical information;

[0046] (2) Create an XML file for describing the corresponding logical information, physical information and the mapping r...

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 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.

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 何成万李征胡宏银姚峰余秋惠张立军张慧
Owner WUHAN INSTITUTE OF TECHNOLOGY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products