From 04f083a0e6a15027aee53f06a347a62ad5c54fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Mendelski?= Date: Thu, 10 Nov 2022 23:05:07 +0100 Subject: [PATCH] Add missing classLoader setter --- .../java/com/coditory/quark/context/ContextBuilder.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/coditory/quark/context/ContextBuilder.java b/src/main/java/com/coditory/quark/context/ContextBuilder.java index 9facfb1..c66453d 100644 --- a/src/main/java/com/coditory/quark/context/ContextBuilder.java +++ b/src/main/java/com/coditory/quark/context/ContextBuilder.java @@ -85,6 +85,14 @@ public ContextBuilder setEventBusExceptionHandler(@NotNull DispatchExceptionHand return this; } + @NotNull + public ContextBuilder setClassLoader(@NotNull ClassLoader classLoader) { + expectUninitialized(); + expectNonNull(classLoader, "classLoader"); + this.classLoader = classLoader; + return this; + } + @NotNull public ContextBuilder registerConfigurationBeans() { return registerConfigurationBeans(true);