public class ProxyUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
newProxy(T service,
InvocationHandler handler) |
static <T> T |
runWithContextClassLoader(ClassLoader classLoader,
T service)
Creates a proxy that will call
service with provided classLoader . |
public static <T> T runWithContextClassLoader(ClassLoader classLoader, T service)
service
with provided classLoader
. After the call original
context class loader will be restored.public static <T> T newProxy(T service, InvocationHandler handler)
Copyright © 2021 Atlassian. All rights reserved.