Package net.bytebuddy.agent
Enum Class ByteBuddyAgent.AttachmentProvider.ForUserDefinedToolsJar
java.lang.Object
java.lang.Enum<ByteBuddyAgent.AttachmentProvider.ForUserDefinedToolsJar>
net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider.ForUserDefinedToolsJar
- All Implemented Interfaces:
Serializable
,Comparable<ByteBuddyAgent.AttachmentProvider.ForUserDefinedToolsJar>
,Constable
,ByteBuddyAgent.AttachmentProvider
- Enclosing interface:
- ByteBuddyAgent.AttachmentProvider
public static enum ByteBuddyAgent.AttachmentProvider.ForUserDefinedToolsJar
extends Enum<ByteBuddyAgent.AttachmentProvider.ForUserDefinedToolsJar>
implements ByteBuddyAgent.AttachmentProvider
An attachment provider that attempts to locate a
tools.jar
from a custom location set via a system property.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider
ByteBuddyAgent.AttachmentProvider.Accessor, ByteBuddyAgent.AttachmentProvider.Compound, ByteBuddyAgent.AttachmentProvider.ForEmulatedAttachment, ByteBuddyAgent.AttachmentProvider.ForJ9Vm, ByteBuddyAgent.AttachmentProvider.ForModularizedVm, ByteBuddyAgent.AttachmentProvider.ForStandardToolsJarVm, ByteBuddyAgent.AttachmentProvider.ForUserDefinedToolsJar
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The property being read for locatingtools.jar
.Fields inherited from interface net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider
DEFAULT
-
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
INSTANCE
The singelton instance.
-
-
Field Details
-
PROPERTY
The property being read for locatingtools.jar
.- See Also:
-
-
Constructor Details
-
ForUserDefinedToolsJar
private ForUserDefinedToolsJar()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
attempt
Attempts the creation of an accessor for a specific JVM's attachment API.- Specified by:
attempt
in interfaceByteBuddyAgent.AttachmentProvider
- Returns:
- The accessor this attachment provider can supply for the currently running JVM.
-