A while back, I discussed the AdaptorRegistry used throughout Tapestry.

Think of it as a "smart Map", that connects arbitrary objects to a
"best-fit" adaptor by doing a search based on inheritance and implemented
interfaces.

I've created a patch from the jakarta-commons/lang/src.

This patch adds the org.apache.commons.lang.util.AdaptorRegistry (torn out
of Tapestry), plus a test suite.  

I've run the entire commons-lang test suite succesfully.

Please get back to me if you decide to add this to commons-lang.  I think it
is a good fit.

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/proposals/tapestry


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to