Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Support default types for qualifiers #105

Open
mdekstrand opened this issue Oct 20, 2014 · 1 comment
Open

Support default types for qualifiers #105

mdekstrand opened this issue Oct 20, 2014 · 1 comment
Labels

Comments

@mdekstrand
Copy link
Member

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.

@lhkbob
Copy link
Contributor

lhkbob commented Oct 20, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants