[ http://mc4j.org/jira/browse/STS-456?page=comments#action_10979 ] Tim Fennell commented on STS-456: ---------------------------------
Ben: I presume you're talking about implementing what we talked about where you first scan for an exact match, and if that doesn't work, scan for a subclass match? (Or concurrently, but not short-circuiting for a subclass match). One thing to take into account, is what happens if I have a deep hierarchy (3+ classes) and formatters for the top two classes in the hierarchy? We should probably pick the one closest to the class handed in. > TypeConverterFactory and FormatterFactory should handle subclasses of their > target type > --------------------------------------------------------------------------------------- > > Key: STS-456 > URL: http://mc4j.org/jira/browse/STS-456 > Project: Stripes > Issue Type: Improvement > Components: Validation, Formatting > Reporter: Ben Gunter > Assigned To: Ben Gunter > Fix For: Release 1.5 > > > Given class A and class B, which extends A, and Formatter<A>, > DefaultFormatterFactory should be able to locate Formatter<A> to format > objects of type B. Likewise for DefaultTypeConverterFactory. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://mc4j.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Stripes-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-development
