Page MenuHomePhabricator

Factory for registration of formatters to be used for values of a certain data type.
Closed, DeclinedPublic

Description

The ValueFormatterFactory currently only takes formatters to be used with data values of a certain value type.

We need a mechanism to register formatters to be used for values of a certain data type. If no formatter is registered for a data type, this factory should fall back to a ValueFormatterFactory and take the formatter registered for the data type's value type.

Preferably, ValueFormatterFactory would stay untouched since it should not have to care about the concept of data types.

Also have a look at the JavaScript implementation of ValueviewExpertFactory where we allow registration of jQuery.valueview.Expert constructors to be used with a specific data type, or generic for a given data value.


Version: unspecified
Severity: normal
Whiteboard: Storypoints: 8

Details

Reference
bz51799

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:58 AM
bzimport set Reference to bz51799.
bzimport added a subscriber: Unknown Object (MLST).

Due to the latest code changes this is not longer relevant.