Improved the type safety of AttributeRenderer and ModelAdaptor by converting them to generic interfaces.
Another goal behind this is to help dependency injection for AttributeRenderers and ModelAdaptors. If using a framework such as Guice, you can bind each AttributeRenderer<SomeType> to an implementation. If the interface is not generic you have to create a separate binding annotation for each AttributeRenderer, which requires a lot of boilerplate.
Improved the type safety of AttributeRenderer and ModelAdaptor by converting them to generic interfaces.
Another goal behind this is to help dependency injection for
AttributeRenderer
s andModelAdaptor
s. If using a framework such as Guice, you can bind eachAttributeRenderer<SomeType>
to an implementation. If the interface is not generic you have to create a separate binding annotation for eachAttributeRenderer
, which requires a lot of boilerplate.