<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_AnyKoro_分类_Java</title><id>http://feed.cnblogs.com/blog/u/53802/category/325130/rss</id><updated>2012-05-27T23:42:14Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/category/325130.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/53802/category/325130/rss"/><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/19/2254930.html</id><title type="text">【转】从贫血到充血Domain Model</title><summary type="text">http://www.blogjava.net/RongHao/archive/2008/07/03/212402.html关于Domain Model的讨论已经非常多了，炒炒冷饭，这里是自己的一些做法。以Workitem（工作流里的工作项）作为例子最开始的做法：一个实体类叫做Workitem，指的是一个工作项或者称为任务项一个DAO类叫做WorkitemDao一个业务逻辑类叫做WorkitemManager(或者叫做WorkitemService)主要看看WorkitemManager，因为主要逻辑集中在这里publicclassWorkitemManager{privateWorkItem</summary><published>2011-11-19T03:09:00Z</published><updated>2011-11-19T03:09:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/19/2254930.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/19/2254930.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/10/11/2207481.html</id><title type="text">设计模式的精要理解（不断更新）</title><summary type="text">1、工厂模式本质：工厂模式的本质就是以不直接通过构造函数的方式实现构造之实。之所以叫“工厂”，是因为该手段（指实现的方法，可能是方法也可能是类）的作用是new一个对象出来，这个new的过程就如生产的过程。目的：1、更好地控制生成 2、同时由于中间多了一步，利用多态可以使得程序更灵活，更可扩展。</summary><published>2011-10-11T08:38:00Z</published><updated>2011-10-11T08:38:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/11/2207481.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/11/2207481.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/09/27/2192827.html</id><title type="text">【转】大型Java分布式应用纵横谈</title><summary type="text">越来越多的基于REST的服务开始取代SOAP。Java中的REST服务在JSR 311中有说明，是基于HTTP所支持的基本操作而设计的。但是，REST不是作为RCP协议，而是面向资源的，为了访问和操作(web)资源而设计的。这两个协议都支持同步通信。这也是底层HTTP协议所要求的。WS-地址对SOAP协议进行扩展，所以它也允许异步服务的实现。REST最大的优点是，能够很容易的通过HTTP代理实现缓存。REST依靠使用HTTP底层协议，无论如何都和用的机制。 可能犯的错 分布式应用的很多地方都可能出现潜在的问题，如图所示： 图5 分布式应用的问题起因 在客户端，主要的问题在于糟糕的交...</summary><published>2011-09-27T02:13:00Z</published><updated>2011-09-27T02:13:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/09/27/2192827.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/09/27/2192827.html"/><content type="html"/></entry></feed>
