public class SpringLoaded
extends java.lang.Object
Constructor and Description |
---|
SpringLoaded() |
Modifier and Type | Method and Description |
---|---|
static int |
loadNewVersionOfType(java.lang.Class<?> clazz,
byte[] newbytes)
Force a reload of an existing type.
|
static int |
loadNewVersionOfType(java.lang.ClassLoader classLoader,
java.lang.String dottedClassname,
byte[] newbytes)
Force a reload of an existing type.
|
public static int loadNewVersionOfType(java.lang.Class<?> clazz, byte[] newbytes)
clazz
- the class to be reloadednewbytes
- the data bytecode data to reload as the new versionpublic static int loadNewVersionOfType(java.lang.ClassLoader classLoader, java.lang.String dottedClassname, byte[] newbytes)
classLoader
- the classloader that was used to load the original form of the typedottedClassname
- the dotted name of the type being reloaded, e.g. com.foo.Barnewbytes
- the data bytecode data to reload as the new version