public class InstrumentationConfiguration extends Object
SandboxClassLoader
.Modifier and Type | Class | Description |
---|---|---|
static class |
InstrumentationConfiguration.Builder |
Modifier | Constructor | Description |
---|---|---|
protected |
InstrumentationConfiguration(Map<String,String> classNameTranslations,
Collection<MethodRef> interceptedMethods,
Collection<String> instrumentedPackages,
Collection<String> instrumentedClasses,
Collection<String> classesToNotAcquire,
Collection<String> packagesToNotAquire,
Collection<String> classesToNotInstrument,
Collection<String> packagesToNotInstrument,
String classesToNotInstrumentRegex) |
Modifier and Type | Method | Description |
---|---|---|
Map<String,String> |
classNameTranslations() |
Map from a requested class to an alternate stand-in, or not.
|
boolean |
containsStubs(String className) |
|
boolean |
equals(Object o) |
|
int |
hashCode() |
|
String |
mappedTypeName(String internalName) |
|
Set<MethodRef> |
methodsToIntercept() |
|
static InstrumentationConfiguration.Builder |
newBuilder() |
|
String |
remapParams(String desc) |
|
String |
remapParamType(String desc) |
|
boolean |
shouldAcquire(String name) |
Determine if
SandboxClassLoader should load a given class. |
boolean |
shouldAcquireResource(String name) |
Determine if
SandboxClassLoader should load a given resource. |
boolean |
shouldInstrument(MutableClass mutableClass) |
Determine if
SandboxClassLoader should instrument a given class. |
protected InstrumentationConfiguration(Map<String,String> classNameTranslations, Collection<MethodRef> interceptedMethods, Collection<String> instrumentedPackages, Collection<String> instrumentedClasses, Collection<String> classesToNotAcquire, Collection<String> packagesToNotAquire, Collection<String> classesToNotInstrument, Collection<String> packagesToNotInstrument, String classesToNotInstrumentRegex)
public static InstrumentationConfiguration.Builder newBuilder()
public boolean shouldInstrument(MutableClass mutableClass)
SandboxClassLoader
should instrument a given class.mutableClass
- The class to check.public boolean shouldAcquire(String name)
SandboxClassLoader
should load a given class.name
- The fully-qualified class name.public boolean shouldAcquireResource(String name)
SandboxClassLoader
should load a given resource.name
- The fully-qualified resource name.public Map<String,String> classNameTranslations()
public boolean containsStubs(String className)