|
计算机应用 2006
Research and realization of class factory pattern under reflection mechanism
|
Abstract:
Factory pattern is one of the effective patterns which decouple client and server. Restricted by language, the coupling rate between server and factory class remains high. Thanks to the introduction of reflection mechanism, factory pattern could produce new type product without resort to conventional inheritance. A new class factory pattern under reflection mechanism was presented, which could completely deeouple server and factory class. The idea was proved in a business graphics system.