imagej.patcher
Class LegacyInjector

java.lang.Object
  extended by imagej.patcher.LegacyInjector

Deprecated.

@Deprecated
public class LegacyInjector
extends Object

Overrides class behavior of ImageJ1 classes using bytecode manipulation. This class uses the CodeHacker (which uses Javassist) to inject method hooks, which are implemented in the imagej.patcher package.

Author:
Curtis Rueden

Constructor Summary
LegacyInjector()
          Deprecated.  
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyInjector

public LegacyInjector()
Deprecated. 
Method Detail

injectHooks

public void injectHooks(ClassLoader classLoader)
Deprecated. 
Overrides class behavior of ImageJ1 classes by injecting method hooks.

Parameters:
classLoader - the class loader into which to load the patched classes

injectHooks

public void injectHooks(ClassLoader classLoader,
                        boolean headless)
Deprecated. 
Overrides class behavior of ImageJ1 classes by injecting method hooks.

Parameters:
classLoader - the class loader into which to load the patched classes
headless - whether to include headless patches

writeJar

public static void writeJar(File outputJar,
                            boolean headless,
                            boolean fullIJJar)
                     throws ClassNotFoundException,
                            IOException,
                            NotFoundException
Deprecated. 
Writes a .jar file with the patched classes.

Parameters:
outputJar - the .jar file to write to
headless - whether to include the headless patches
fullIJJar - whether to include unpatched ImageJ 1.x classes and resources, too
Throws:
ClassNotFoundException
IOException
NotFoundException

preinit

public static void preinit()
Deprecated. 

preinit

public static void preinit(ClassLoader classLoader)
Deprecated. 

installHooks

public static LegacyHooks installHooks(ClassLoader classLoader,
                                       LegacyHooks hooks)
                                throws UnsupportedOperationException
Deprecated. 
Throws:
UnsupportedOperationException


Copyright © 2009–2014 ImageJ. All rights reserved.