|
41 | 41 | * If the specified parameters are not found from {@link URL}, then the default extension will be used for |
42 | 42 | * dependency injection (specified in its interface's {@link SPI}). |
43 | 43 | * <p> |
44 | | - * For examples, given <code>String[] {"key1", "key2"}</code>: |
| 44 | + * For example, given <code>String[] {"key1", "key2"}</code>: |
45 | 45 | * <ol> |
46 | 46 | * <li>find parameter 'key1' in URL, use its value as the extension's name</li> |
47 | 47 | * <li>try 'key2' for extension's name if 'key1' is not found (or its value is empty) in URL</li> |
48 | | - * <li>use default extension if 'key2' doesn't appear either</li> |
| 48 | + * <li>use default extension if 'key2' doesn't exist either</li> |
49 | 49 | * <li>otherwise, throw {@link IllegalStateException}</li> |
50 | 50 | * </ol> |
51 | | - * If default extension's name is not give on interface's {@link SPI}, then a name is generated from interface's |
| 51 | + * If the parameter names are empty, then a default parameter name is generated from interface's |
52 | 52 | * class name with the rule: divide classname from capital char into several parts, and separate the parts with |
53 | | - * dot '.', for example: for {@code org.apache.dubbo.xxx.YyyInvokerWrapper}, its default name is |
54 | | - * <code>String[] {"yyy.invoker.wrapper"}</code>. This name will be used to search for parameter from URL. |
| 53 | + * dot '.', for example, for {@code org.apache.dubbo.xxx.YyyInvokerWrapper}, the generated name is |
| 54 | + * <code>String[] {"yyy.invoker.wrapper"}</code>. |
55 | 55 | * |
56 | | - * @return parameter key names in URL |
| 56 | + * @return parameter names in URL |
57 | 57 | */ |
58 | 58 | String[] value() default {}; |
59 | 59 |
|
|
0 commit comments