[Miles' Blog]

Welcome 2 My Planet

Available categories: [/] [development. ~]

去掉了service和data access层的类中所有的非static成员变量 [Permalink]

Wed Dec 22 19:09:54 CST 2004
Category [working on downwap.]

主要针对pageCount这个property。很多牵扯分页的类都有他。以前通过

String xml=service.getXxxByYyy();
int pageCount=service.getPageCount();
这样方式读取页数,而现在则是通过标准化返回的xml,让他本身包含pageCount这个ExtInfo。

这样一来,就可以大量应用singleton模式了。毕竟对于目前系统,频繁的new是不可忽视的性能瓶颈之一。

Posted by: miles
Comments [0] |

?
四月 2024
Sun? Mon? Tue? Wed? Thu? Fri? Sat?
 123456
78910111213
14151617181920
21222324252627
282930    
       
<  Mar???Today??? May  >
<< <   1   > >>

Available categories: [/] [development. ~]

Powered By blojsom?? RSS Feed? RSS2 Feed? RDF Feed

html hits:?51117