protected static class ClassInjector.UsingReflection.Dispatcher.Resolved.ForJava7CapableVm extends ClassInjector.UsingReflection.Dispatcher.Resolved
ClassInjector.UsingReflection.Dispatcher.Resolved.ForJava7CapableVm, ClassInjector.UsingReflection.Dispatcher.Resolved.ForLegacyVm, ClassInjector.UsingReflection.Dispatcher.Resolved.UnsafeDispatcher
ClassInjector.UsingReflection.Dispatcher.Faulty, ClassInjector.UsingReflection.Dispatcher.Initializable, ClassInjector.UsingReflection.Dispatcher.Resolved
defineClass, defineClassUnsafe, definePackage, findLoadedClass, getPackage, theUnsafe
UNDEFINED
Modifier | Constructor and Description |
---|---|
protected |
ForJava7CapableVm(Method getClassLoadingLock,
Method findLoadedClass,
Method defineClass,
Method getPackage,
Method definePackage,
Field theUnsafe,
Method defineClassUnsafe)
Creates a new resolved reflection store for a VM running at least Java 7.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
Object |
getClassLoadingLock(ClassLoader classLoader,
String name) |
int |
hashCode() |
protected void |
onInitialization()
Invoked upon initializing methods.
|
String |
toString() |
defineClass, definePackage, findClass, getPackage, initialize, make
protected ForJava7CapableVm(Method getClassLoadingLock, Method findLoadedClass, Method defineClass, Method getPackage, Method definePackage, Field theUnsafe, Method defineClassUnsafe)
getClassLoadingLock
- An instance of ClassLoader#getClassLoadingLock(String)
.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
public boolean equals(Object object)
equals
in class ClassInjector.UsingReflection.Dispatcher.Resolved
public int hashCode()
hashCode
in class ClassInjector.UsingReflection.Dispatcher.Resolved
Copyright © 2014–2016. All rights reserved.