protected static class ClassInjector.UsingReflection.Dispatcher.Resolved.ForLegacyVm extends ClassInjector.UsingReflection.Dispatcher.Resolved
ClassInjector.UsingReflection.Dispatcher.Resolved.ForJava7CapableVm, ClassInjector.UsingReflection.Dispatcher.Resolved.ForLegacyVm, ClassInjector.UsingReflection.Dispatcher.Resolved.UnsafeDispatcher
ClassInjector.UsingReflection.Dispatcher.CreationAction, ClassInjector.UsingReflection.Dispatcher.Faulty, ClassInjector.UsingReflection.Dispatcher.Initializable, ClassInjector.UsingReflection.Dispatcher.Resolved
defineClass, defineClassUnsafe, definePackage, findLoadedClass, getPackage, theUnsafe
UNDEFINED
Modifier | Constructor and Description |
---|---|
protected |
ForLegacyVm(Method findLoadedClass,
Method defineClass,
Method getPackage,
Method definePackage,
Field theUnsafe,
Method defineClassUnsafe)
Creates a new resolved reflection store for a VM prior to Java 8.
|
Modifier and Type | Method and Description |
---|---|
Object |
getClassLoadingLock(ClassLoader classLoader,
String name) |
protected void |
onInitialization()
Invoked upon initializing methods.
|
String |
toString() |
defineClass, definePackage, equals, findClass, getPackage, hashCode, initialize
protected ForLegacyVm(Method findLoadedClass, Method defineClass, Method getPackage, Method definePackage, Field theUnsafe, Method defineClassUnsafe)
findLoadedClass
- An instance of ClassLoader.findLoadedClass(String)
.defineClass
- An instance of ClassLoader.defineClass(String, byte[], int, int, ProtectionDomain)
.getPackage
- An instance of ClassLoader.getPackage(String)
or ClassLoader#getDefinedPackage(String)
.definePackage
- An instance of ClassLoader.definePackage(String, String, String, String, String, String, String, URL)
.defineClassUnsafe
- An instance of sun.misc.Unsafe#theUnsafe
or null
if it is not available.theUnsafe
- An instance of sun.misc.Unsafe#defineClass(String, byte[], int, int, ClassLoader, ProtectionDomain)
or null
if it is not available.public Object getClassLoadingLock(ClassLoader classLoader, String name)
protected void onInitialization()
ClassInjector.UsingReflection.Dispatcher.Resolved
onInitialization
in class ClassInjector.UsingReflection.Dispatcher.Resolved
Copyright © 2014–2017. All rights reserved.