public static class ClassInjector.UsingInstrumentation extends Object implements ClassInjector
Instrumentation to append to either the boot classpath
 or the system class path.| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ClassInjector.UsingInstrumentation.Target
A representation of the target to which Java classes should be appended to. 
 | 
ClassInjector.UsingInstrumentation, ClassInjector.UsingReflectionDEFAULT_PROTECTION_DOMAIN| Constructor and Description | 
|---|
UsingInstrumentation(File folder,
                    ClassInjector.UsingInstrumentation.Target target,
                    Instrumentation instrumentation)
Creates an instrumentation-based class injector. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object other)  | 
int | 
hashCode()  | 
Map<TypeDescription,Class<?>> | 
inject(Map<? extends TypeDescription,byte[]> types)
Injects the given types into the represented class loader. 
 | 
String | 
toString()  | 
public UsingInstrumentation(File folder, ClassInjector.UsingInstrumentation.Target target, Instrumentation instrumentation)
folder - The folder to be used for storing jar files.target - A representation of the target path to which classes are to be appended.instrumentation - The instrumentation to use for appending to the class path or the boot path.public Map<TypeDescription,Class<?>> inject(Map<? extends TypeDescription,byte[]> types)
ClassInjectorinject in interface ClassInjectortypes - The types to load via injection.Copyright © 2014–2015. All rights reserved.