public class ProxyUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
newProxy(T service,
InvocationHandler handler) |
static <T> T |
runInTransaction(T service,
Function<Supplier<?>,?> transactionalRunner) |
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 runInTransaction(T service,
Function<Supplier<?>,?> transactionalRunner)
public static <T> T newProxy(T service,
InvocationHandler handler)
Copyright © 2024 Atlassian. All rights reserved.