java design pattern

after readiness of java design pattern, I found most of them are used in development.

java design pattern:

factory: the most common pattern,create a new object ,eg. A a=new A();
facade: give a common interface of subsystem. eg: database access manupalation
singleton: let one class only has one instance, something like static parameter, can save memory,
           beneficial to garbage collection
proxy
prototype: the same as clone()
adapter: it is an integretion of composition and inheritance
template: give a construction in abstract class, and postpone detail manupalation to subclass
iterator
command: similar to callback function in C language

memento: used in JSP
observer:commonly used in e-business project, which can inform change on products.
COR: chain of responsibility
 

你可能感兴趣的:(java design pattern)