POJO是什么?

POJO
An acronym for: Plain Old Java Object.

The term was coined while Rebbecca Parsons, Josh MacKenzie and I were preparing for a talk at a conference in September 2000. In the talk we were pointing out the many benefits of encoding business logic into regular java objects rather than using Entity Beans. We wondered why people were so against using regular objects in their systems and concluded that it was because simple objects lacked a fancy name. So we gave them one, and it's caught on very nicely.

这个名词是我(Martin Fowler)与Rebbecca Parsons,Josh MacKenzie在2000年准备在一個研讨会中演讲时所创造出来的.在这个演讲中,我们指出,将商业逻辑编码成标准(regular)的Java对象,比使用Entity Beans,可以提供更多的好处.但是我们很惊讶,为什么人们如此反对在他们的系統中使用标准对象,我们的结论是:因为简单的对象缺乏一个流行的名称.因此我们给他一个好听的名称,而且这个名称非常贴切.

---------------

Either EJB (Enterprise JavaBeans) or POJO (plain old Java objects) can be used to build the business-logic tier. EJB with remote interfaces is a better choice if the application is distributed. Since JCatalog is a typical Web application with no remote access required, POJO, with the help of the Spring Framework, is used to implement the business-logic tier.

无论EJB还是POJO都可以用来构建业务逻辑层.如果应用程序是分布式的,则拥有远程接口的EJB是一个很好的选择.而我们的JCatalog是一个典型的没有远程访问需求的Web应用,所以在Spring框架下的POJO被我们用来实现业务逻辑层.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值