ilovesimple_200...'s profileSimple SpacePhotosBlogLists Tools Help
Photo 1 of 4
November 11

SOA 是这个什么东西?

现在的企业为了降低成本,避免重复建设,都采用当今流行的SOA的方式来架构他们的信息基础。
 
今天开始读<<SOA using java web services>>, 了解一下SOA和webservice的一些知识。

坚持写一点技术方面的东西到这里

很久不写,都会不知道该怎么写了。
经常记录记录,回过头来看看还是挺有意思的一件事情。
 
还是坚持在有空的时候写写吧。。。

Map

put method: if the key already exists, it will overwrite that object in the map.

get method: will get the copy of the object with the key, so change this object won't impact original object in the map.

Design best practice

1. Declare interface, use interface not specific class. This adds flexibility. This can be combined with java Reflection api to use.

2. Factory pattern has better not to use the simplest version, that is have all the concrete class name in the factory method, but use reflection to instantiate the objects.

3. Object composition or concrete inheritance. Sometimes certain helper code is common for all places, in this case, do not use it as inheritance, but have the helper object composited in the class. This is definitely a better design approach.

4. After fulfilling basic functionality, always refactor the code to extract an interface, and an abstract class for elementary functionalities.

5.

 
No list items have been added yet.