您的位置:首页 > 其它

(Item 1) use static factory to substitute constructors

2007-05-06 23:54 423 查看
(Item 1) use static factory to substitute constructors
more meaningful name than constructor name
don’t require to create new instance each time they’re invoked
return object of any subtype (map string key to class name, reflection: spring creation mechanism)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: