Comparison between hivemind and spring (1)

Source: Internet
Author: User

Hivemind and spring overlap a large part of their implementation functions. They all implement similar functions by using ICO principles such as control flip and dependency injection, in this regard, the guiding spirit of the two is the same.

The existence is reasonable. The implementation methods and concerns of hivemind and spring are quite different.

Hivemind is a microkernel that provides component services and configurations. It is a basic framework for various Java programs. The Java program can be a tapestry application, servlet-based web application, command line tool, swing or awt gui program, and so on.

Services in hivemind are Java classes that implement specific interfaces and are registered. Hivemind uses the dependency injection mode to generate and provide these services in real time. (See the following example)

 

As for spring, there are many communities that will be introduced here.
The following figure compares the two frames:
Hivemind Architecture

Spring architecture:

The following compares the two architectures in text mode.

Examples:
1. Use hivemind and spring to intercept a method.

Continue tomorrow :-)

Comparison of another friend: h vs S
Http://raibledesigns.com/wiki/Wiki.jsp? Page = appfuse
Tian Chunfeng

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.