public static enum AgentBuilder.LocationStrategy.NoOp extends Enum<AgentBuilder.LocationStrategy.NoOp> implements AgentBuilder.LocationStrategy
AgentBuilder.LocationStrategy.Compound, AgentBuilder.LocationStrategy.ForClassLoader, AgentBuilder.LocationStrategy.NoOp, AgentBuilder.LocationStrategy.Simple
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
ClassFileLocator |
classFileLocator(ClassLoader classLoader,
JavaModule module)
Creates a class file locator for a given class loader and module combination.
|
static AgentBuilder.LocationStrategy.NoOp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.LocationStrategy.NoOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.LocationStrategy.NoOp INSTANCE
public static AgentBuilder.LocationStrategy.NoOp[] values()
for (AgentBuilder.LocationStrategy.NoOp c : AgentBuilder.LocationStrategy.NoOp.values()) System.out.println(c);
public static AgentBuilder.LocationStrategy.NoOp valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic ClassFileLocator classFileLocator(ClassLoader classLoader, JavaModule module)
classFileLocator
in interface AgentBuilder.LocationStrategy
classLoader
- The class loader that is loading an instrumented type. Might be null
to represent the bootstrap class loader.module
- The type's module or null
if Java modules are not supported on the current VM.Copyright © 2014–2019. All rights reserved.