public static final class InstrumentationConfiguration.Builder extends Object
Modifier and Type | Field and Description |
---|---|
Collection<String> |
classesToNotAcquire |
Collection<String> |
classesToNotInstrument |
Map<String,String> |
classNameTranslations |
Collection<String> |
instrumentedClasses |
Collection<String> |
instrumentedPackages |
Collection<MethodRef> |
interceptedMethods |
Collection<String> |
packagesToNotAcquire |
Collection<String> |
packagesToNotInstrument |
Constructor and Description |
---|
Builder() |
Builder(InstrumentationConfiguration classLoaderConfig) |
Modifier and Type | Method and Description |
---|---|
InstrumentationConfiguration.Builder |
addClassNameTranslation(String fromName,
String toName) |
InstrumentationConfiguration.Builder |
addInstrumentedClass(String name) |
InstrumentationConfiguration.Builder |
addInstrumentedPackage(String packageName) |
InstrumentationConfiguration.Builder |
addInterceptedMethod(MethodRef methodReference) |
InstrumentationConfiguration |
build() |
InstrumentationConfiguration.Builder |
doNotAcquireClass(Class<?> clazz) |
InstrumentationConfiguration.Builder |
doNotAcquireClass(String className) |
InstrumentationConfiguration.Builder |
doNotAcquirePackage(String packageName) |
InstrumentationConfiguration.Builder |
doNotInstrumentClass(String className) |
InstrumentationConfiguration.Builder |
doNotInstrumentPackage(String packageName) |
public final Collection<String> instrumentedPackages
public final Collection<MethodRef> interceptedMethods
public final Collection<String> classesToNotAcquire
public final Collection<String> packagesToNotAcquire
public final Collection<String> instrumentedClasses
public final Collection<String> classesToNotInstrument
public final Collection<String> packagesToNotInstrument
public Builder()
public Builder(InstrumentationConfiguration classLoaderConfig)
public InstrumentationConfiguration.Builder doNotAcquireClass(Class<?> clazz)
public InstrumentationConfiguration.Builder doNotAcquireClass(String className)
public InstrumentationConfiguration.Builder doNotAcquirePackage(String packageName)
public InstrumentationConfiguration.Builder addClassNameTranslation(String fromName, String toName)
public InstrumentationConfiguration.Builder addInterceptedMethod(MethodRef methodReference)
public InstrumentationConfiguration.Builder addInstrumentedClass(String name)
public InstrumentationConfiguration.Builder addInstrumentedPackage(String packageName)
public InstrumentationConfiguration.Builder doNotInstrumentClass(String className)
public InstrumentationConfiguration.Builder doNotInstrumentPackage(String packageName)
public InstrumentationConfiguration build()