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

Class 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
static Classfind(ClassLoader cl, String className)
Returns the already injected class, or null.
static Classinject(ClassLoader cl, String className, byte[] image)
Injects a new class into the given class loader.
Classinject(String className, byte[] image)

Method Detail

find

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

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.

inject

Class inject(String className, byte[] image)