public final class LoadClass extends Object implements PrivilegedAction<Class<?>>
If no class loader is provided, first the thread context class loader is tried, and finally Hibernate Validator's own class loader.
Note: When loading classes provided by the user (such as XML-configured beans or constraint types), the user class loader passed to the configuration must be passed.
Modifier and Type | Method and Description |
---|---|
static LoadClass |
action(String className,
ClassLoader classLoader) |
static LoadClass |
action(String className,
ClassLoader classLoader,
boolean fallbackOnTCCL) |
static LoadClass |
action(String className,
ClassLoader classLoader,
ClassLoader initialThreadContextClassLoader)
in some cases, the TCCL has been overridden so we need to pass it explicitly.
|
Class<?> |
run() |
public static LoadClass action(String className, ClassLoader classLoader)
public static LoadClass action(String className, ClassLoader classLoader, boolean fallbackOnTCCL)
public static LoadClass action(String className, ClassLoader classLoader, ClassLoader initialThreadContextClassLoader)
public Class<?> run()
run
in interface PrivilegedAction<Class<?>>
Copyright © 2021 JBoss by Red Hat. All rights reserved.