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 | Field and Description |
|---|---|
| private final ClassLoader | |
| private final String | |
| private final boolean | fallbackOnTCCL
when true, it will check the Thread Context ClassLoader when the class is not found in the provided one |
| private static final String | |
| private final ClassLoader | |
| private static final Log |
| Access | Constructor and Description |
|---|---|
| private | LoadClass(String className, ClassLoader classLoader, ClassLoader initialThreadContextClassLoader, boolean fallbackOnTCCL)
|
| Modifier and Type | Method and Description |
|---|---|
| public static LoadClass | |
| public static LoadClass | |
| public static LoadClass | action(String className, ClassLoader classLoader, ClassLoader initialThreadContextClassLoader)
in some cases, the TCCL has been overridden so we need to pass it explicitly. |
| private Class | |
| private Class | |
| public Class |
| classLoader | back to summary |
|---|---|
| private final ClassLoader classLoader | |
| className | back to summary |
|---|---|
| private final String className | |
| fallbackOnTCCL | back to summary |
|---|---|
| private final boolean fallbackOnTCCL when true, it will check the Thread Context ClassLoader when the class is not found in the provided one | |
| HIBERNATE_VALIDATOR_CLASS_NAME | back to summary |
|---|---|
| private static final String HIBERNATE_VALIDATOR_CLASS_NAME | |
| initialThreadContextClassLoader | back to summary |
|---|---|
| private final ClassLoader initialThreadContextClassLoader | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| LoadClass | back to summary |
|---|---|
| private LoadClass(String className, ClassLoader classLoader, ClassLoader initialThreadContextClassLoader, boolean fallbackOnTCCL) | |
| action | back to summary |
|---|---|
| public static LoadClass action(String className, ClassLoader classLoader) | |
| action | back to summary |
|---|---|
| public static LoadClass action(String className, ClassLoader classLoader, boolean fallbackOnTCCL) | |
| action | back to summary |
|---|---|
| public static LoadClass action(String className, ClassLoader classLoader, ClassLoader initialThreadContextClassLoader) in some cases, the TCCL has been overridden so we need to pass it explicitly. | |
| loadClassInValidatorNameSpace | back to summary |
|---|---|
| private Class | |
| loadNonValidatorClass | back to summary |
|---|---|
| private Class | |
| run | back to summary |
|---|---|
| public Class Implements java. Doc from java. Performs the computation. This method will be called by
| |