-
-
Notifications
You must be signed in to change notification settings - Fork 202
Description
I am using jooby-avaje-inject, and I noticed AvajeInjectModule returns true in lateinit. This causes me to not be able to use jooby's require() to get my mvc controller classes.
I am trying to install the mvc controllers in the code of the Jooby subclass after installing the avaje inject module, but this exception happens:
jooby/jooby/src/main/java/io/jooby/Jooby.java
Line 747 in 27315c4
| throw new RegistryException("Service not found: " + key); |
I believe the exception message is incorrect or at least confusing because on the condition !registry.isSet() it throws "service not found: class name". I think it should be "registry is not set" instead.
When I make a subclass of AvajeInjectModule and override lateinit to return false, the code works without issue.
Is the problem in the module or am I using require() incorrectly in a wrong place?