public class ClassLoadingSupport extends Object
Constructor and Description |
---|
ClassLoadingSupport() |
Modifier and Type | Method and Description |
---|---|
static Class<?> |
reloadClass(Class<?> aClass)
EXPERIMENTAL!
Reloads the specified class from a new classloader, allowing its static initializations to run again.
|
public static Class<?> reloadClass(Class<?> aClass) throws IOException, ClassNotFoundException
aClass
- a class to reloadIOException
- if there is a problem reading the original class definitionClassNotFoundException
- if there is a problem creating the new definition.Copyright © 2024. All rights reserved.