From d57e4cdeb7bd0d3e51934bb34a91b5f89bda0abe Mon Sep 17 00:00:00 2001 From: Jim Ma Date: Tue, 12 Nov 2024 18:09:08 +0800 Subject: [PATCH] [JBWS-4432]:Add getter for DelegateClassLoader --- .../java/org/jboss/ws/common/utils/DelegateClassLoader.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/jboss/ws/common/utils/DelegateClassLoader.java b/src/main/java/org/jboss/ws/common/utils/DelegateClassLoader.java index 722d46d..d43bfe1 100644 --- a/src/main/java/org/jboss/ws/common/utils/DelegateClassLoader.java +++ b/src/main/java/org/jboss/ws/common/utils/DelegateClassLoader.java @@ -34,6 +34,7 @@ */ public class DelegateClassLoader extends SecureClassLoader { + private final ClassLoader delegate; private final ClassLoader parent; @@ -133,4 +134,9 @@ public InputStream getResourceAsStream(final String name) } return (is == null) ? delegate.getResourceAsStream(name) : is; } + + public ClassLoader getDelegate() { + return delegate; + } + }