diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-10-01 15:57:34 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-10-01 15:57:34 +0200 |
commit | be47cb0be990fd15b09fb0f528c84cb98b209915 (patch) | |
tree | 89e7aee6432fc39763fc77b7002d1c9435322854 | |
parent | 999556d9c93331b169f00ee28fd5095eae98c362 (diff) |
Make use of fallback injector a warning.
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentGraph.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentGraph.java b/container-core/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentGraph.java index 179abba42c8..cdc11cbb0c8 100644 --- a/container-core/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentGraph.java +++ b/container-core/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentGraph.java @@ -258,7 +258,10 @@ public class ComponentGraph { if (component.isEmpty()) { Object instance; try { - log.log(Level.FINE, () -> "Trying the fallback injector to create" + messageForNoGlobalComponent(clazz, node)); + // This is an indication that you have not set up your components correctly in the model + // And tit will cause unnecessary reconstruction of your components. + // TODO: this should perhaps bee a warning. + log.log(Level.INFO, () -> "Trying the fallback injector to create" + messageForNoGlobalComponent(clazz, node)); instance = fallbackInjector.getInstance(key); } catch (ConfigurationException e) { throw removeStackTrace(new IllegalStateException( |