您的位置:首页>软件开发>软件架构>

Spring VS. HiveMind (2)

[ 来源:zealot.blog.ccidnet.com/blog/ | 更新日期:2007-7-15 20:16:14 | 评论 0 条 | 我要投稿 ]
  * Who manages service?
  Spring: BeanFactory or ApplicationContext.
  HiveMind: Registry.
  
  * Dependency Injection?
  Spring: yes. type-2 and type-3 supported.
  HiveMind: yes. type-2 and type-3 supported.
  
  * Service Depenency Injection?
  Spring:
  使用ref元素。
  
  HiveMind:
  在配置文件中使用set-service元素。
  
  Comments:
  在更换实现时,HiveMind因强制针对接口编程而占有优势。
  
  * Intializing and finalizing methods?
  Spring :
    init-method="init()"
  destroy-method="cleanup()"/>
  />
  HiveMind:
  

字串4


  不支持finalizing method。
  Comments:
  Spring略优。
  
  * How to configure AOP?
  Spring:
  
  
  Tony
  51
  
  
  
  Custom string property value
  
  
  
  
    class="org.springframework.aop.framework.ProxyFactoryBean"
  >
  com.mycompany.Person  
  property>
  
  
  
  
  myAdvisor
  debugInterceptor
  
  
  
  
  HiveMind: 字串9
  
  
  
  
  
  
  
  
  
  
  
  
  Comments:
  Spring将接口和核心实现分开定义成两个bean,HiveMind则统一定义成一个service。
  
  这点上HiveMind优于Spring。


Tags:
责任编辑:
您的评论
用户名: 新注册) 密码: 匿名评论 [所有评论]

·用户发表意见仅代表其个人意见,并且承担一切因发表内容引起的纠纷和责任
·本站管理人员有权在不通知用户的情况下删除不符合规定的评论信息或留做证据
·请客观的评价您所看到的资讯,提倡就事论事,杜绝漫骂和人身攻击等不文明行为