Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type safety of AttributeRenderer and ModelAdaptor #78

Closed
wants to merge 1 commit into from

Conversation

JeffFaer
Copy link

@JeffFaer JeffFaer commented Apr 9, 2014

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.

@parrt
Copy link
Member

parrt commented Dec 8, 2015

Hi. some nice stuff here but I'd like to avoid adding generics. Happy to add your other changes if you want to make a new PR. thanks!

@parrt parrt closed this Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants