既然这样,动态代理会更适合,因为它只需要每次SEI修改时重新实例化(而不像使用静态存根时重建)就行了。
In this case, a dynamic proxy is more suitable because it only needs to be re-instantiated (rather than regenerated as in the case of a static stub) whenever the SEI changes.
Portlet 以及其它的一些对象(例如,门户网站主题)在很多情况下可以通过动态发现来查找和实例化服务。
Portlets, and in many cases other objects (such as a portal theme), can lookup and instantiate a service through dynamic discovery.
比如说,该机制要能动态替换、实例化类,还可以与负责绑定标记文件的Wicket机制交互。
For example, it could dynamically substitute and instantiate classes and interact with the Wicket mechanism that is responsible for binding markup files.
应用推荐