Font Size: a A A

IoC Micro Container Design Supporting XML Configuration

Posted on:2008-01-31Degree:MasterType:Thesis
Country:ChinaCandidate:J ZhaoFull Text:PDF
GTID:2178360245993110Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
At all times one goal of software engineering is reducing the coupling, which can improve the reusability of software, but traditional method can't get rid of the dependence among classes. So inversion of control (IoC) is introduced. This method manages the dependence among classes through the container, and then achieves the goal of reducing the coupling.This paper mainly studies the principle, meaning and implementation of the IoC pattern and designed a compact lightweight container completely and systematically. It provides a good framework by java interface. At mean while it has a perfect exception handle mechanism base on the Java language. Since the current micro container can't support XML configuration defects, this paper has made its own enhancement creatively. By supporting the XML configuration, it could greatly improve the scalability of the code and avoid the unnecessary dependence injection. Because the micro container is directed at a small business application level, it achieves self-resolve on the reliance, making it easier for the user.The significance of the container design supporting the inversion of control is to reduce the dependence between codes, and improve the speed of software development and maintenance, and make secondary development easier. This container does not only work alone in a project but also can be a part of a huge container. It provides a powerful tool for application which uses the IoC pattern.
Keywords/Search Tags:Lightweight Container, Micro Container, IoC (Inversion of Control), DI (Dependence Injection)
PDF Full Text Request
Related items