Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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} 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.)

...