Method for dynamically creating object example by configuration in run time

An object instance, dynamic creation technology, applied in the computer field to reduce complexity, implement simplicity, and improve efficiency

Inactive Publication Date: 2012-03-28
INSPUR COMMON SOFTWARE
View PDF2 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method solves the problem of program runtime expansion an...

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 for dynamically creating object example by configuration in run time
  • Method for dynamically creating object example by configuration in run time
  • Method for dynamically creating object example by configuration in run time

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The method for dynamically creating an object instance through configuration at runtime of the present invention will be described in detail below with reference to the accompanying drawings in specific embodiments.

[0030] The method of the invention is applicable to the creation of object instances of C# programs and the realization of interface-oriented programming. Its specific implementation is as attached figure 1 shown.

[0031] figure 1 Shown is a standard three-tier architecture implementation.

[0032] The business entity, business logic layer, and data logic layer all correspond to a corresponding interface.

[0033] Each requirement body that needs to create an object creates an interface object through the IOC container.

[0034] The specific creation of the instance is realized by the IOC container. The specific implementation realizes the inversion of control through the reflection technology, and dynamically creates the required object instance thr...

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 method for dynamically creating an object example by configuration in run time, belonging to the technical field of a computer, which comprises the following steps of: generating an IOC (Inversion of Control) container, and creating an example by a DLL (Dynamic Link Library); reading the information of a configuration file, uploading an object according to configuration information; quickly realizing interface programming; realizing the fuse of the interface programming and object creation; and in program execution, creating the object example by the configuration object information of the configuration file. Compared with the prior art, according to the invention, the problem of complexity in expansion and programming in the program execution is solved, the efficiency of the programming is improved, and the method can be widely applied to the creation process of the object example for designing a computer software C#.

Description

[0001] technical field [0002] The invention relates to a computer technology, in particular to a method for dynamically creating an object instance through configuration at runtime. Background technique [0003] At present, most enterprise-level application systems adopt a three-tier or multi-tier application model. And most enterprise-level application systems have chosen object-oriented programming technology. The so-called "object" is a collection of one or a group of data and methods and procedures for processing these data. Objects are created in two basic ways. One is to generate new objects based on prototype objects. One is to generate new objects based on classes. In order to facilitate the development, deployment, operation and management of applications based on multi-tier architecture, it is necessary to build a complete application framework based on the characteristics of different languages. The realization and instantiation of objects is an essential p...

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
IPC IPC(8): G06F9/44
Inventor 杜正涛
Owner INSPUR COMMON SOFTWARE
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