Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » 科技英语  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 pro spring 讨论
ww1ww1





发贴: 202
于 2005-08-24 15:38 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
pro spring 第48页:
Spring's Dependency
Injection capabilities form the ideal solution to the external configuration of application
components, not for dependency provision but as a mechanism for externalizing component
configuration settings. The question here then is: What is the difference between a
configuration parameter and any other kind of dependency? In most cases, you can clearly
see whether a dependency should be classed as a configuration parameter, but if you are
not sure, look for the following three characteristics that point to a configuration parameter:。。。

想想怎么spring也管起了implements是有必要在interface上定义这事啦。感觉pro spring 话挺多的。

第49页
it is obvious that all implementations need to know which SMTP
server to use when sending e-mails.However, we would probably choose to leave the
configuration option that flags whether to send secure e-mail off the business interface,
because not all e-mail APIs are capable of this and it is correct to assume that many
implementations will not take security into consideration at all.

这个当然啦,如果implements不是大多数实现类都需要实现的方法,当然不用在interface定义啦。。。无语了,感觉在教我怎么写interface而不是spring了。还挺厉害的,一共罗列了3条标准。。。这。。。




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2018 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号
客服电话 0592-8750026    客服信箱 714923@qq.com    客服QQ 714923