Annotation Type Adaptive
Provide helpful information for
ExtensionLoader to inject dependency extension instance.- See Also:
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String[] valueDecide 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"}.- Returns:
- parameter names in URL
- Default:
{}
-