注释类型 Adaptive
-
@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface Adaptive
Provide helpful information forExtensionLoaderto inject dependency extension instance.- 另请参阅:
ExtensionLoader,URL
-
-
元素详细资料
-
value
String[] value
Decide which target extension to be injected. The name of the target extension is decided by the parameter passed in the URL, and the parameter names are given by this method.If the specified parameters are not found from
URL, then the default extension will be used for dependency injection (specified in its interface'sSPI).For example, given
String[] {"key1", "key2"}:- find parameter 'key1' in URL, use its value as the extension's name
- try 'key2' for extension's name if 'key1' is not found (or its value is empty) in URL
- use default extension if 'key2' doesn't exist either
- otherwise, throw
IllegalStateException
org.apache.dubbo.xxx.YyyInvokerWrapper, the generated name isString[] {"yyy.invoker.wrapper"}.- 返回:
- parameter names in URL
- 默认值:
- {}
-
-