![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
软件架构
bloodnight
这个作者很懒,什么都没留下…
展开
-
重构:Replace Conditional with Polymorphism
You have a conditional that chooses different behavior depending on the type of an object. Move each leg of the conditional to an overriding method in a subclass. Make the original method abstract. ...2010-05-13 15:13:50 · 115 阅读 · 0 评论 -
架构师common concerns
Good architects are often formed by having better architects mentor them (Waldo 2006). One reason may be that there are certain concerns that are common to nearly all projects. We have already a...2010-06-04 16:08:27 · 167 阅读 · 0 评论 -
线程池执行任务模式
线程池,给予其任务执行,线程池本身又有线程的概念,所以现在就有三个实体,1个线程池,m个线程,n个任务,看程序: import java.util.LinkedList; /** A thread pool is a group of a limited number of threads that are used to execute tasks. */ ...2010-11-11 10:55:17 · 78 阅读 · 0 评论