Menu

#19 Provide Incomplete EquivalentFactory

open
nobody
5
2012-06-11
2012-06-11
Conan
No

It would be handy to have a factory provided that will populate all the supported fields of an bean, leaving aside properties whose types are unsupported. For example, I have a bean that contains 20 or so properties of primitive types, and one List containing instances of a proprietary type; rather than having to write an EquivalentFactory implementation which populates 21 fields, I'd like to write one that populates just the one awkward field, but delegates to an existing EquivalentFactory to populate the other fields. Currently the EquivalentPopulatedBeanFactory doesn't expose any more than its create() method, which will fail if an unsupported type is required.

Discussion


Log in to post a comment.