com.sun.xml.bind.v2.runtime.reflect.opt
Class Injector

java.lang.Object
  extended by com.sun.xml.bind.v2.runtime.reflect.opt.Injector

final class Injector
extends Object

A ClassLoader used to "inject" optimized accessor classes into the VM.

Its parent class loader needs to be set to the one that can see the user class.


Method Summary
(package private) static Class find(ClassLoader cl, String className)
          Returns the already injected class, or null.
(package private) static Class inject(ClassLoader cl, String className, byte[] image)
          Injects a new class into the given class loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

inject

static Class inject(ClassLoader cl,
                    String className,
                    byte[] image)
Injects a new class into the given class loader.

Returns:
null if it fails to inject.

find

static Class find(ClassLoader cl,
                  String className)
Returns the already injected class, or null.