Dubbo Source parsing-dubbo Micro-kernel implementation (SPI extension)

Source: Internet
Author: User
SPI extension mechanism Dubbo micro-container Extension mechanism

function Introduction

The 1.dubbo extension mechanism is very similar to the SPI mechanism in Java, but adds the following features:
can easily get a desired extension implementation, Java's SPI mechanism does not provide such a function

2. The IOC dependency injection function is implemented for the extension.
For example: interface A, the implementation of A1, A2. Interface B, the implementation of B1, B2.
Now the implementation of A1 contains SETB () method, will automatically inject an interface B's implementation, at this time injected B1 or B2 it. is not, but is injected into a dynamically generated interface B of the b$adpative, the implementation can be based on different parameters, automatic reference B1 or B2 to complete the corresponding function

The 3 extension uses adorner mode for enhanced functionality, similar to the functionality of AOP implementations.

Resources
Https://github.com/alibaba/dubbo

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.