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