HiveMind与Spring 的比较

HiveMind与Spring 的比较

可能没用过HiveMind的关系,有些部分没看明白。

So how does HiveMind compare to Spring and PicoContainer other these lightweight containers?

 

They are all pretty good ideas. Each one is going to tickle an individual person's needs in a different way. PicoContainer is a sort of a the leanest and meanest one but what's neat about it is it doesn't require that the objects implement a particular interface, Spring is the same way, it doesn't care about interface so much. HiveMind is very much interface oriented, so every service in HiveMind needs to implement a specific interface, which gives us a lot of latitude to do a lot of interesting AOP like thing using just standard technologies like dynamic proxies or JBoss' JavaAssist framework. In terms of maturity, PicoContainer is new, Avalon has been run for a quite a bit longer. Spring is gaining a lot of traction and has some really great integration with some other big tools like Hibernate. HiveMind is sort of I think catching up to those. I think the biggest difference between all of them is that first of all HiveMind have the same line precise error reporting as Tapestry, which is great because it is so driven by XML. Second, none of the other frameworks, especially Spring, PicoContainer idea have this configuration idea that I borrowed from Eclipse for HiveMind. So they can talk to a lot of services and configuring services, connecting services, but HiveMind has this idea of configuration data that can come from different locations. Like I was saying with Eclipse you can talk about a tool bar in that different modules can contribute to that tool bar, you can do the exact same thing using HiveMind which really makes sense in any kind of application, web application, desktop application.

 

Great. Can you use HiveMind and Spring together?

 

You can't use them together yet, but there is no real reason like any of these containers, HiveMind, Spring, Avalon can't run one of the other containers as a managed bean or service or whatever the right terminology is. I think everyone is going to integrate with everyone else. People have done pictures of this and I fully expect to have a way in HiveMind of having Spring as a service that can provide beans managed by Spring as other HiveMind services that will be fairly simple to do and I think doing something similar from the Spring side into HiveMind would also be very simple and we are talking dozens of lines of code.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值