How do I inject a constant into some class using HK2 in jersey? With Guice I could have some class like
public class DependsOnFoo {
@Inject
public DependsOnFoo(@Named("FOO") String foo) {
...
}
...
}
and I would configure it in the injector with something like
bind(String.class).named("FOO").toInstance(new String("foo"))
What's the equivalent, if any, in HK2?