|
Hello folks, I'm trying to put a enumeration into the ginjector with these lines of code: ClientGinjector.java
ClientModule.java
But when I'm trying to compile I get the following error: [ERROR] Error injecting bla.blup.MyEnum: Unable to create or inherit binding: Binding requested for constant key 'bla.blup.MyEnum' but no explicit binding was foundCan anyone please help me? |
bindConstant().annotatedWith(MyOption1.class).to(MyEnum.OP1);
@Inject
public void Clazz(final @MyOption1 MyEnum myEnum)bind(MyInterface.class).to(MyEnum.class);