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

A method for generating spring IOC configuration files

A configuration file and file technology, applied in program control devices, special data processing applications, instruments, etc., to achieve the effect of user convenience, flexibility, and simplification of configuration work

Active Publication Date: 2015-09-23
北京中科北龙科技有限责任公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0016] The purpose of the present invention is to provide a method for programmatically generating Spring IOC configuration files to solve the problem that Java object instances are grouped into Spring IOC configuration files and correctly unmarshaled by the Spring framework

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 method for generating spring IOC configuration files
  • A method for generating spring IOC configuration files
  • A method for generating spring IOC configuration files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The present invention will be further described below through the embodiments and in conjunction with the accompanying drawings.

[0042] figure 2 The flow chart of the method for programmatic generation Spring IOC configuration file of the present embodiment, its step comprises:

[0043] 1) Design and implement the Java object instance loading mechanism to realize the loading of single or multiple Java object instances.

[0044] In this step, the Java object instance loading mechanism can load a list of single or multiple Java object instances that need to be marshaled. This mechanism is embodied as a class containing a Map attribute, and one or more Java object instances can be added to the Map attribute, which is specifically embodied as a SpringBeans class in this embodiment.

[0045] 2) Design and implement the attribute filtering mechanism, and use the annotation method to realize the attribute filtering and reading of the Java objects that need to b...

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 provides a generation method for a Spring IOC (Inversion of Control) configuration file. The generation method comprises the following steps of 1) loading one or more Java object instances, reading and filtering attribute lists of all the Java object instances to be marshaled; 2) establishing a corresponding node creation device and defining a writing-in rule; 3) generating nodes of the Spring IOC configuration file by the node creation device according to the writing-in rule, and writing in the Java object instances and attributes of the Java object instances in the nodes; and 4) outputting all the nodes to the Spring IOC configuration file according to different output modes. According to the generation method, the Java object instances can be mutually quoted, and the generated Spring IOC configuration file can be unmarshaled correctly by a Spring framework; in addition, the flexibility and the marshaling efficiency are high, thereby greatly simplifying the configuration work and facilitating the user of users.

Description

Technical field 4 [0001] The invention belongs to the field of computer application development, relates to XML data binding technology, and in particular relates to a method for programmatically generating Spring IOC configuration files. Background technique [0002] Spring is an open source framework created to solve the complexity of enterprise application development. It is a lightweight Inversion of Control (IOC, Inversion of Control) and aspect-oriented container framework. It is also the most popular open source framework in the field of Java development. Widely used in the design and development of enterprise application software and government information systems. For example: Chinese Patent Publication No.: CN101996071A, using the Spring framework to encapsulate Java class files for implementing the object data operation commands; Chinese Patent Publication No.: CN101097615, using Spring for service management, and then realizing a network administrative approval i...

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): G06F9/44G06F17/30
Inventor 沈志宏黎建辉苏贤明
Owner 北京中科北龙科技有限责任公司
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