uml图:
demo 实现:https://github.com/jmcuixy/design-patterns/tree/master/src/main/java/com/example/bridge
uml图:
demo 实现:https://github.com/jmcuixy/design-patterns/tree/master/src/main/java/com/example/builder
uml图:
tips:struts 的拦截器,servlet 的过滤器,netty 的 channelpipeline 都是责任链模式~
uml:
demo 实现:https://github.com/jmcuixy/design-patterns/tree/master/src/main/java/com/example/flyweight
uml:
demo 实现:https://github.com/jmcuixy/design-patterns/tree/master/src/main/java/com/example/interpreter
uml:
demo 实现:https://github.com/jmcuixy/design-patterns/tree/master/src/main/java/com/example/mediator
uml:
demo 实现:https://github.com/jmcuixy/design-patterns/tree/master/src/main/java/com/example/memento
uml:
demo 实现:https://github.com/jmcuixy/design-patterns/tree/master/src/main/java/com/example/prototype
uml:
demo 实现:https://github.com/jmcuixy/design-patterns/tree/master/src/main/java/com/example/visitor
根据模式的目标,我们将设计模式分成三个不同的类目:创建型、行为型(对象之间的沟通和互联)和结构型(动态的组合对象):
模式可能带来复杂性,可能导致代码被过度工程化,如果没有必要,我们绝不需要这样的复杂性。
折腾了快四个月的设计模式,终于到终章了~~颇有收获,时有一种豁然开朗的感觉——原来继承和组合还能这么玩。
好的,终于从一个设计模式的小白成长为入门级别了,终于能够跟人吹牛逼的时候时不时说个设计模式了,哈哈哈哈...任重而道远!
如对本文有疑问, 点击进行留言回复!!
【面试题】研究过tomcat的NioEndpoint源码吗?请阐述下Reactor多线程模型在tomcat中的实现。
荐 厉害了!阿里P8架构师用4大技术文档带你深入解读爆火的中台战略
网友评论