Font Size: a A A

Implementing Design Pattern With Java Generics

Posted on:2007-04-25Degree:MasterType:Thesis
Country:ChinaCandidate:W J TuFull Text:PDF
GTID:2178360218460479Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Design Pattern is a kind of guidance idea that is the summary of muchpractice experience and presented by many experts in software field. It istested through time and application field, and solving project to someproblems which are solved by seasoned designer, developer and linguist.JDK1.5 takes in genetic type as its interior characteristic formally. Generictype solves one of the most headachy problems in Java programming-date-type conversion brought when object refers to a different date-type.At the beginning, this paper compares generic type with non-generictype, elaborating syntax of Java generic type to a certain extent. Then it takesJava generic type as developing tool and 23 design patterns of GOF asimplementation target, analyzing generic possibility of each pattern andpresenting generic type implementation of those who can be generic. Whencoding, we find that other 22 design patterns can be generic basically exceptBridge pattern. Comparing codes of each pattern before and after generic,analyzing quantitatively from coupling and reusability, we can find thatcoupling of most creation pattern and behavior pattern decrease after generic,while structure pattern have no obvious change.This project aims to implementing design pattern with Java generic typeand comparing it with the one implemented by Java, analyzing advantages and disadvantages of their each.
Keywords/Search Tags:design pattern, Java generic type, generic
PDF Full Text Request
Related items