From 317680847f4ea8a8694da16f2102c4884dabe07a Mon Sep 17 00:00:00 2001 From: Marc Magon Date: Tue, 2 Jan 2024 03:31:14 +0200 Subject: [PATCH] Open API and Rest Updates --- src/main/java/com/guicedee/guicedinjection/GuiceContext.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/guicedee/guicedinjection/GuiceContext.java b/src/main/java/com/guicedee/guicedinjection/GuiceContext.java index 2ffe661..615866d 100644 --- a/src/main/java/com/guicedee/guicedinjection/GuiceContext.java +++ b/src/main/java/com/guicedee/guicedinjection/GuiceContext.java @@ -407,6 +407,10 @@ private void loadConfiguration() .getCanonicalName()); guiceConfigurator.configure(GuiceContext.config); } + if(!GuiceContext.config.isIncludeModuleAndJars()) + { + log.warning("Scanning is not restricted to modules and may incur a performance impact. Consider registering your module with GuiceContext.registerModule() to auto enable, or SPI IGuiceConfiguration"); + } GuiceContext.log.config("IGuiceConfigurator : " + GuiceContext.config.toString()); configured = true; }