Design and Implementation of IoC Container Based on Java
- Author
- ZhangLiChao
- Advisor
- YangFengJie
- School
- Jilin University
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 86
- Citations
- 3
Abstract
Lightweight framework before the EJB has served as the heart of J2EE exist , due to its complex structure and performance inefficiencies led to the generation of lightweight framework , Spring framework for its mature and perfect to become the leader in the lightweight framework . Now more and more enterprise-class development with the Spring Framework , and achieved great success . Spring Framework developers like a black box , developers just know that Spring offers , but do not know its internal structure and working principle , this fool programming is detrimental to the growth of the developer . We can see on the network using Spring developers questions to all sorts of strange anomalies and errors are not the right solution , the reason is that do not understand the internal structure and working principle of the Spring , if you understand its internal structure and working principle, step-by-step tracking program from the source to find the root of the problem . For developers using Spring , it should do know these and know why . Spring is a great framework to study the Spring container from its the core IOC ( InversionofControl ) should start . Spring has achieved great success in the enterprise application development , but its infrastructure is still a lack of research IoC container companies can develop according to their own specific needs for own lightweight container . In this paper , on the basis of the extensive literature reference , the departure from the study the source code analysis of the internal structure and working principle of the IoC container , UML static class diagrams and sequence diagrams and data flow diagrams in the form of display container design and implementation process , and analysis of the container performance and features , and finally pointed out that the expansion of the container and where you can do further research . In this paper , on the basis of analysis of the IoC container , abstract a can solve the model of the same kinds of problems , to some extent innovative .
Table of contents
Summary 4-7
Chapter 1 Introduction 7-10
1.1 research background 7
1.2 The main work 7-8
1.3 The paper is organized 8-9
1.4 significance of this study 9-10
Chapter 2 enterprise-class development in the framework of the technical analysis 10-15
2.1 Spring Framework research status and development trend 10-11
2.2 lightweight framework concepts 11
2.3 Lightweight level framework and heavyweight framework for comparing 11-12
2.4 Comparison between various lightweight framework 12-13
2.5 Spring Framework 13-15
Chapter 3 IoC container's overall design 15-21
3.1 Requirements Analysis 15-16
3.2 design ideas 16-17 <br / > 3.3 Design Goals 17-18
3.4 IoC container overall structure 18-19
3.5 IoC container works 19-20
3.6 IoC container features 20-21
IoC container in Chapter 4 of the key technologies to achieve the principle 21-31
4.1 classloader 21-22 <br / > 4.1.1 class loader hierarchy system 21-22
4.1.2 class loader rules 22
4.2 XML and its related technologies 22 - 24
4.3 reflex mechanism 24-26
4.3.1 reflection to access the field 24-25
4.3.2 reflex access methods 25 <br / > 4.3.3 reflection to call 25-26
4.4 JavaBean components 26
4.5 design patterns 26-31
4.5.1 Open Closed Principle 27
4.5.2 simple factory pattern 27-28
4.5.3 template method pattern 28-29
4.5.4 proxy mode 29-31
Chapter 5 IoC container for the detailed design and implementation 31-51
5.1 IoC container Introduction 31-33
5.1.1 The concept of container 31
5.1.2 IoC concept 31-33
5.2 IoC two implementation strategies 33-35
5.2.1 Dependency Injection 33-34
5.2.2 Setter and constructors in the choice between 34-35
5.3 IoC container design and implementation process 35-42 <br / > 5.3.1 Container XML configuration-file DTD design 35-38
5.3.2 configuration file parsing and bean definition information stored 38-39
5.3.3 IoC The overall core container class diagram 39-40
5.3.4 to get the bean from the BeanFactory process 40-42
5.4 bean instance generated several key points 42-46
5.4.1 Bean lifecycle 42-44
5.4.2 automatic assembly realization 44-45
5.4.3 dependency checking analysis 45-46
5.5 Performance Analysis 46-47
5.5.1 IoC pattern comparison with the factory model 46
5.5.2 containers can be maintainability and reusability 46
5.5.3 unified management of data structures 46-47
5.6 container extension points 47-51 <br / > 5.6.1 configuration-file DTD design into XMLSchema design 47-48
5.6.2 business expansion 48-49
5.6.3 Multi-Language Extension 49
5.6.4 The AOP technology and IoC technology combined 49-51
Chapter 6 Thesis Summary and Outlook 51-53
6.1 Summary 51
6.2 Prospects 51-53
References 53-55
Thanks 55-56
Summary 56 -58
Abstract 58-60
Related dissertations
- Research and Design of Highway Engineering Information Management System Based on J2EE
- Design and Implement of Lightweight MTIoC Container
- Research and Implementation of Component Management Technology in Pervasive Computing Environments
- The Design and Implementation of Agricultural Distribution Information Management System Based on J2EE
- Design and Implementation of Uniform Interface Platform System on AOP/IoC in the Telecommunications Industry
- Analysis and Implementation of Integrated Service Platform of Tianjin Port Container Logistics Center
- Design and Implementation of Management System for Container Operation
- Lightweight Localized Network Coding Aware Mechanism
- Design and implementation of the lightweight block cipher ESF
- Design and Implementation of a Lightweight Communication Framework
- The Art Research of Relic Container of Chinese Buddhism
- Wind Turbine Self-Advancing Access System and Its Lightweignt Design
- DL2500GFJ1Containerized Power Generating Unit and Optimization
- Study on Analysis Method and Lightweight of Tubesheet Structure for Heat Exchanger
- Study on lightweight device for large hydraulic excavator
- The Research of the Outfitting Design on the1700TEU Shallow Ship
- Lightweight Research and Improved Design of a Coach Bus
- Finite Element Analysis and Lightweight Design of Heavy Load Metal Rubber Damper
- Research on Lightweight Design Method of Engine Hood Based on Pedestrian Protection
- Structure Lightweight Design of the Key Part of the Passenger Car Body Based on the Principle of Topology Optimization