public class InstrumentationConfiguration
extends java.lang.Object
Configuration rules for SandboxClassLoader.
| Modifier and Type | Class and Description |
|---|---|
static class |
InstrumentationConfiguration.Builder |
| 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(ClassInfo classInfo) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.util.Set<MethodRef> |
methodsToIntercept() |
static InstrumentationConfiguration.Builder |
newBuilder() |
boolean |
shouldAcquire(java.lang.String name)
Determine if
SandboxClassLoader should load a given class. |
boolean |
shouldInstrument(ClassInfo classInfo)
Determine if
SandboxClassLoader should instrument a given class. |
public static InstrumentationConfiguration.Builder newBuilder()
public boolean shouldInstrument(ClassInfo classInfo)
Determine if SandboxClassLoader should instrument a given class.
classInfo - 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 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(ClassInfo classInfo)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object