grapht
grapht copied to clipboard
Support default types for qualifiers
Proposal (maybe we've already discussed):
Add a @DefaultType annotation to Grapht that can be applied to qualifiers. When applied, the qualifier can be bound as
builder.bind(Qualifier.class).to(Implementation)
without error checking and binding to the default type. This may remove the need for LensKit's @Parameter annotation.
I don't recall discussing this previously, but it seems like a pretty straight forward addition. I also think it's valuable, both to simplify LensKit, and because it aids in documenting the intended target types of a qualifier.