I figured this must be something I'm fundamentally doing wrong, but I'm
unable to get scope bindings to be read from classes I'm binding as
contracts.
E.g.
@RunLevel
class MyRLDep {}
//binds to scope appropriately
bind(MyRLDep.class).in(RunLevel.class);
//doesnt actually bind to the appropriate scope
bindAsContract(MyRLDep.class);
What I am actually trying to accomplish is simply annotating run level
(
https://hk2.java.net/runlevel.html) services and proceed to the next
level. Digging into the source it looks like the services are not
being found by
org.glassfish.hk2.runlevel.internal.CurrentTaskFuture.UpOneLevel.run.
Am I registering these services incorrectly?
Thanks,
Zack