You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/03/13 17:49:46 UTC

DO NOT REPLY [Bug 27639] New: - [convert]Default value conversion

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27639>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27639

[convert]Default value conversion

           Summary: [convert]Default value conversion
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Sandbox
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: oliver.heger@t-online.de


This is a patch that implements handling of default values for the convert2
codebase. The patch contains the following classes with corresponding unit tests:

- ObjectToTypeConversionFactory is a base class for conversions and their
factories that convert from arbitrary objects to a concrete type.

- ObjectToIntConversionFactory performs the conversion its name implies.

- DefaultValueConversion is a decorator conversion that allows other conversions
to deal with default values that are returned if the value to be converted is
null or if an exception occurs during conversion.

- DefaultValueConversionFactory is a decorator conversion factory that
constructs conversions that are decorated by a DefaultValueConversion.

Oliver

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