Polishing
This commit is contained in:
parent
bf05da1f8c
commit
5b1ab31559
|
|
@ -541,10 +541,9 @@ com
|
|||
|
||||
Note that you can also use the standard `BeanInfo` JavaBeans mechanism here as well
|
||||
(described to some extent
|
||||
https://docs.oracle.com/javase/tutorial/javabeans/advanced/customization.html[
|
||||
here]). The following example use the `BeanInfo` mechanism to
|
||||
explicitly register one or more `PropertyEditor` instances with the properties of an
|
||||
associated class:
|
||||
https://docs.oracle.com/javase/tutorial/javabeans/advanced/customization.html[here]). The
|
||||
following example uses the `BeanInfo` mechanism to explicitly register one or more
|
||||
`PropertyEditor` instances with the properties of an associated class:
|
||||
|
||||
[literal,subs="verbatim,quotes"]
|
||||
----
|
||||
|
|
@ -567,7 +566,7 @@ associates a `CustomNumberEditor` with the `age` property of the `Something` cla
|
|||
try {
|
||||
final PropertyEditor numberPE = new CustomNumberEditor(Integer.class, true);
|
||||
PropertyDescriptor ageDescriptor = new PropertyDescriptor("age", Something.class) {
|
||||
@Override
|
||||
@Override
|
||||
public PropertyEditor createPropertyEditor(Object bean) {
|
||||
return numberPE;
|
||||
}
|
||||
|
|
@ -626,7 +625,7 @@ nested property setup, so we strongly recommend that you use it with the
|
|||
where it can be automatically detected and applied.
|
||||
|
||||
Note that all bean factories and application contexts automatically use a number of
|
||||
built-in property editors, through their use a `BeanWrapper` to
|
||||
built-in property editors, through their use of a `BeanWrapper` to
|
||||
handle property conversions. The standard property editors that the `BeanWrapper`
|
||||
registers are listed in the <<beans-beans-conversion, previous section>>.
|
||||
Additionally, `ApplicationContexts` also override or add additional editors to handle
|
||||
|
|
|
|||
Loading…
Reference in New Issue