|
9 | 9 | /** |
10 | 10 | * Jackson-specific annotation used for indicating that value of |
11 | 11 | * annotated property will be "injected", i.e. set based on value |
12 | | - * configured by <code>ObjectMapper</code> (usually on per-call basis). |
| 12 | + * configured by {@code ObjectMapper} or {@code ObjectReader} (usually on per-call basis). |
13 | 13 | * Usually property is not deserialized from JSON, although it is possible |
14 | 14 | * to have injected value as default and still allow optional override |
15 | 15 | * from JSON. |
|
21 | 21 | { |
22 | 22 | /** |
23 | 23 | * Logical id of the value to inject; if not specified (or specified |
24 | | - * as empty String), will use id based on declared type of property. |
| 24 | + * as empty String), will use id based on declared <b>type</b> of property |
| 25 | + * (NOT name of property). |
25 | 26 | * |
26 | 27 | * @return Logical id of the value to inject |
27 | 28 | */ |
|
41 | 42 | public OptBoolean useInput() default OptBoolean.DEFAULT; |
42 | 43 |
|
43 | 44 | /** |
44 | | - * Whether to throw an exception when the {@code ObjectMapper} does not find |
45 | | - * the value to inject. |
| 45 | + * Whether to throw an exception when the value to inject is not found from |
| 46 | + * {@code ObjectMapper} or {@code ObjectReader} used for reading. |
46 | 47 | *<p> |
47 | 48 | * Default is {@code OptBoolean.DEFAULT} for backwards-compatibility: in this |
48 | | - * case {@code ObjectMapper} defaults are used (which in turn are same |
| 49 | + * case mapper/reader defaults are used (which in turn are same |
49 | 50 | * as {code OptBoolean.FALSE}). |
50 | 51 | * |
51 | 52 | * @return {@link OptBoolean#FALSE} to throw an exception; {@link OptBoolean#TRUE} |
@@ -78,7 +79,8 @@ public static class Value |
78 | 79 |
|
79 | 80 | /** |
80 | 81 | * Id to use to access injected value; if `null`, "default" name, derived |
81 | | - * from accessor will be used. |
| 82 | + * from the <b>type</b> of accessor will be used (specifically, class name |
| 83 | + * of Field type, or setter parameter type). |
82 | 84 | */ |
83 | 85 | protected final Object _id; |
84 | 86 |
|
|
0 commit comments