public class InstrumentationConfiguration extends Object
Configuration rules for SandboxClassLoader
.
Modifier and Type | Class and Description |
---|---|
static class |
InstrumentationConfiguration.Builder |
Modifier | Constructor and 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) |
Modifier and Type | Method and 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)
public static InstrumentationConfiguration.Builder newBuilder()
public boolean shouldInstrument(MutableClass mutableClass)
Determine if SandboxClassLoader
should instrument a given class.
mutableClass
- The class to check.public boolean shouldAcquire(String name)
Determine if SandboxClassLoader
should load a given class.
name
- The fully-qualified class name.public boolean shouldAcquireResource(String name)
Determine if SandboxClassLoader
should load a given resource.
name
- The fully-qualified resource name.public Map<String,String> classNameTranslations()
Map from a requested class to an alternate stand-in, or not.
public boolean containsStubs(String className)