Spring VS. HiveMind (2)
* 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:
不支持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。
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:
责任编辑:您的评论
·用户发表意见仅代表其个人意见,并且承担一切因发表内容引起的纠纷和责任
·本站管理人员有权在不通知用户的情况下删除不符合规定的评论信息或留做证据
·请客观的评价您所看到的资讯,提倡就事论事,杜绝漫骂和人身攻击等不文明行为
·本站管理人员有权在不通知用户的情况下删除不符合规定的评论信息或留做证据
·请客观的评价您所看到的资讯,提倡就事论事,杜绝漫骂和人身攻击等不文明行为
精彩推荐
最新资讯


您的位置: