Currently, if no bootstrap binder is provided in an injected Verticle's config, and the default bootstrap binder class isn't found on the classpath, an error is logged. While this scenario sometimes indicates that the client has mistakenly forgotten to include a binder class in the Verticle's config, there are valid use-cases where you wouldn't do this. Specifically:
You are using a parent Injector, and don't need any additional modules aside from what's already provided by the parent.
You're injecting objects that only require the GuiceVertxBinder to be constructed. The GuiceVertxBinder is provided by default, so no additional binder needs to be provided in the Verticle's config. (Though arguably you don't need to be using DI for this use-case.)
I propose that instead of logging an error when no binder is found, a warning is logged, but only in cases where a parent module isn't present. I'd be happy to provide a PR for this, if you agree with the change.
Currently, if no bootstrap binder is provided in an injected Verticle's config, and the default bootstrap binder class isn't found on the classpath, an error is logged. While this scenario sometimes indicates that the client has mistakenly forgotten to include a binder class in the Verticle's config, there are valid use-cases where you wouldn't do this. Specifically:
GuiceVertxBinder
to be constructed. TheGuiceVertxBinder
is provided by default, so no additional binder needs to be provided in the Verticle's config. (Though arguably you don't need to be using DI for this use-case.)I propose that instead of logging an error when no binder is found, a warning is logged, but only in cases where a parent module isn't present. I'd be happy to provide a PR for this, if you agree with the change.