Java ee 设计模式
文章平均质量分 83
l19861025
这个作者很懒,什么都没留下…
展开
-
表示层模式:Intercepting Filter—拦截过滤器模式
Context The presentation-tier request handling mechanism receives many different types ofrequests, which require varied types of processing. Some requests are simply forwarded tothe appropria...原创 2014-04-07 10:29:25 · 97 阅读 · 0 评论 -
表示层模式:Value List Handler—值列表处理器模式
ContextThe client requires a list of items from the service for presentation. The number ofitems in the list is unknown and can be quite large in many instances.ProblemMost Java 2 Platform, Enterpri...原创 2014-04-09 20:32:04 · 183 阅读 · 0 评论 -
业务层模式:Service Locator—服务定位器模式
ContextService lookup and creation involves complex interfaces and network operations.ProblemJ2EE clients interact with service components, such as Enterprise JavaBeans (EJB)and Java Message Service...原创 2014-04-09 20:31:48 · 227 阅读 · 0 评论 -
集成层模式:Data Access Object—数据访问对象模式
ContextAccess to data varies depending on the source of the data. Access to persistent storage,such as to a database, varies greatly depending on the type of storage (relational databases,object-ori...原创 2014-04-09 20:31:30 · 165 阅读 · 0 评论 -
集成层模式:Service Activator—服务激发器模式
ContextEnterprise beans and other business services need a way to be activatedasynchronously.ProblemWhen a client needs to access an enterprise bean, it first looks up the bean's homeobject. The cli...原创 2014-04-09 20:31:01 · 2335 阅读 · 0 评论 -
业务层模式:Composite Entity—复合实体模式
ContextEntity beans are not intended to represent every persistent object in the object model.Entity beans are better suited for coarse-grained persistent business objects.ProblemIn a Java 2 Platfor...原创 2014-04-08 21:38:36 · 306 阅读 · 0 评论 -
业务层模式:Session Facade—会话门面模式
ContextEnterprise beans encapsulate business logic and business data and expose theirinterfaces, and thus the complexity of the distributed services, to the client tier.ProblemIn a multitiered Java ...原创 2014-04-08 21:38:14 · 373 阅读 · 0 评论 -
业务层模式:Transfer Object—传输对象模式
ContextApplication clients need to exchange data with enterprise beans.ProblemJava 2 Platform, Enterprise Edition (J2EE) applications implement server-sidebusiness components as session beans and en...原创 2014-04-08 21:37:56 · 305 阅读 · 0 评论 -
业务层模式:Business Delegate—业务委托模式
ContextA multi-tiered, distributed system requires remote method invocations to send andreceive data across tiers. Clients are exposed to the complexity of dealing with distributedcomponents.Problem...原创 2014-04-08 21:37:43 · 357 阅读 · 0 评论 -
表示层模式:Dispatcher View—分发者视图模式
ContextSystem controls flow of execution and access to presentation processing, which isresponsible for generating dynamic content.NoteThe Dispatcher View pattern, like the Service to Worker pattern...原创 2014-04-08 21:37:28 · 237 阅读 · 0 评论 -
表示层模式:Service to Worker—工作者服务模式
ContextThe system controls flow of execution and access to business data, from which itcreates presentation content.NoteThe Service to Worker pattern, like the Dispatcher View pattern, describes a com...原创 2014-04-07 10:48:35 · 276 阅读 · 0 评论 -
表示层模式:Front Controller—前端控制器模式
ContextThe presentation-tier request handling mechanism must control and coordinateprocessing of each user across multiple requests. Such control mechanisms may bemanaged in either a centralized or de...原创 2014-04-07 10:45:09 · 208 阅读 · 0 评论 -
表示层模式:Composite View—复合视图模式
ContextSophisticated Web pages present content from numerous data sources, using multiplesubviews that comprise a single display page. Additionally, a variety of individuals withdifferent skill sets...原创 2014-04-07 10:41:21 · 404 阅读 · 0 评论 -
表示层模式:View Helper—视图助手模式
ContextThe system creates presentation content, which requires processing of dynamicbusiness data.ProblemPresentation tier changes occur often and are difficult to develop and maintain whenbusiness ...原创 2014-04-07 10:37:11 · 301 阅读 · 0 评论 -
表示层模式:Transfer Object Assembler—传输对象组装器模式
ContextIn a Java 2 Platform, Enterprise Edition (J2EE) application, the server-side businesscomponents are implemented using session beans, entity beans, DAOs, and so forth.Application clients frequ...原创 2014-04-10 22:48:32 · 684 阅读 · 0 评论