commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jakarta-commons Wiki] Update of "Betwixt/TipsAndHints/CustomObjectStringConverter" by JesseSweetland
Date Thu, 10 Aug 2006 17:38:09 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-commons Wiki" for change notification.

The following page has been changed by JesseSweetland:
http://wiki.apache.org/jakarta-commons/Betwixt/TipsAndHints/CustomObjectStringConverter

------------------------------------------------------------------------------
  Betwixt only allows the registration of a single object/string converter strategy class.
 This class serves as a mediator to route conversion calls
- to helper classes depending based on type.  Converters are registered and by deregistered
via calls to the register and deregister methods, respectively, and resolved via the {@link
#resolve} method.  Only one ObjectStringConverter can be registered per class at any given
time.  If there is no ObjectStringConverter registered for a given class, then the resolve
method checks to see if there is an ObjectStringConverter registered for its super class or
any of its interfaces (recursively).  The first ObjectStringConverter found in the class hierarchy
is used. (Note that if the class implements many interfaces, and there are converters for
more than one of those interfaces, the resulting behavior will be undefined.)
+ to helper classes depending based on type.  Converters are registered and by deregistered
via calls to the register and deregister methods, respectively, and resolved via the resolve
method.  Only one ObjectStringConverter can be registered per class at any given time.  If
there is no ObjectStringConverter registered for a given class, then the resolve method checks
to see if there is an ObjectStringConverter registered for its super class or any of its interfaces
(recursively).  The first ObjectStringConverter found in the class hierarchy is used. (Note
that if the class implements many interfaces, and there are converters for more than one of
those interfaces, the resulting behavior will be undefined.)
  
  {{{
  import java.util.*;

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message