@Deprecated public class LegacyInjector extends Object
CodeHacker (which uses Javassist) to inject method
hooks, which are implemented in the imagej.patcher package.| Constructor and Description |
|---|
LegacyInjector()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
injectHooks(ClassLoader classLoader)
Deprecated.
Overrides class behavior of ImageJ1 classes by injecting method hooks.
|
void |
injectHooks(ClassLoader classLoader,
boolean headless)
Deprecated.
Overrides class behavior of ImageJ1 classes by injecting method hooks.
|
static LegacyHooks |
installHooks(ClassLoader classLoader,
LegacyHooks hooks)
Deprecated.
|
static void |
preinit()
Deprecated.
|
static void |
preinit(ClassLoader classLoader)
Deprecated.
|
static void |
writeJar(File outputJar,
boolean headless,
boolean fullIJJar)
Deprecated.
Writes a .jar file with the patched classes.
|
public void injectHooks(ClassLoader classLoader)
classLoader - the class loader into which to load the patched classespublic void injectHooks(ClassLoader classLoader, boolean headless)
classLoader - the class loader into which to load the patched classesheadless - whether to include headless patchespublic static void writeJar(File outputJar, boolean headless, boolean fullIJJar) throws ClassNotFoundException, IOException, javassist.NotFoundException
outputJar - the .jar file to write toheadless - whether to include the headless patchesfullIJJar - whether to include unpatched ImageJ 1.x classes and
resources, tooClassNotFoundExceptionIOExceptionjavassist.NotFoundExceptionpublic static void preinit()
public static void preinit(ClassLoader classLoader)
public static LegacyHooks installHooks(ClassLoader classLoader, LegacyHooks hooks) throws UnsupportedOperationException
UnsupportedOperationExceptionCopyright © 2014–2022 ImageJ. All rights reserved.