Font Size: a A A

Research And Implementation Of Objects' State Management Patterns In Lightweight Frameworks

Posted on:2008-11-14Degree:MasterType:Thesis
Country:ChinaCandidate:Y MengFull Text:PDF
GTID:2178360215958890Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
In practical programming, the frameworks are used to manage and maintenance the objects. With widen of logic businesses, there are lots of software products with more than one edition. It is very discommodious at system management and application, such as disordered codes, hard to be serviced, difficult to program. Due to many components and objects, the most challenge to developers is how to manage these components in reason.Because of the difficult of the high-weight frameworks' deploy and debug, this paper designs several management arithmetic to resolve the problems based on the researches of light-weight frameworks.Firstly, the paper introduces the main technologies of light-weight frameworks and summarizes the system structure of light-weight frameworks by the analysis of several typical light-weight frameworks, and the core is Ioc container. Besides, the paper puts forward the improved pattern of the management to the objects' states in the frameworks, and expounds the design and implementation of this mode. In the paper, mainly completes the design of the system structure, and selects FrameServer frameworks management of the objects.Secondly, the paper designs Ioc container to the implementation of the state management, and accounts for the design and implementation in detail. After the object's state is designated when it is created, Ioc container creates a DecoratingComponentAdapter to decorate the objects according to the declared types, then return the corresponding component objects to implement Prototype and Singleton pattern. Sequently, register the component and instance in the pool by creating a object pool and so on.Finally, the paper designs a lifecycle model to implement the management to the components' lifecycle, including starting, stopping and disposing. The object state pattern's management is implemented through the reflection and the application of config files. At last of the paper , accounts for the process of light-frameworks' application and the design of the main components. The research of the paper provides inner packages for the framework users , which makes their works easier and be absorbed in developing modules, so it advances the application of light-weight framework.
Keywords/Search Tags:light-weight frameworks, state pattern, object, config, mapping
PDF Full Text Request
Related items