接口 | 说明 |
---|---|
ExtensionFactory |
ExtensionFactory
|
类 | 说明 |
---|---|
ExtensionLoader<T> |
Load dubbo extensions
auto inject dependency extension
auto wrap extension in wrapper
default extension is an adaptive instance
|
注释类型 | 说明 |
---|---|
Activate |
Activate.
|
Adaptive |
Provide helpful information for
ExtensionLoader to inject dependency extension instance. |
SPI |
Marker for extension interface
Changes on extension configuration file
Use Protocol as an example, its configuration file 'META-INF/dubbo/com.xxx.Protocol' is changes from: com.foo.XxxProtocol com.foo.YyyProtocol to key-value pair xxx=com.foo.XxxProtocol yyy=com.foo.YyyProtocol The reason for this change is: If there's third party library referenced by static field or by method in extension implementation, its class will fail to initialize if the third party library doesn't exist. |
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.