Package net.bytebuddy.agent
Class ByteBuddyAgent.AgentProvider.ForExistingAgent
java.lang.Object
net.bytebuddy.agent.ByteBuddyAgent.AgentProvider.ForExistingAgent
- All Implemented Interfaces:
ByteBuddyAgent.AgentProvider
- Enclosing interface:
- ByteBuddyAgent.AgentProvider
public static class ByteBuddyAgent.AgentProvider.ForExistingAgent
extends Object
implements ByteBuddyAgent.AgentProvider
An agent provider that supplies an existing agent that is not deleted after attachment.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.agent.ByteBuddyAgent.AgentProvider
ByteBuddyAgent.AgentProvider.ForByteBuddyAgent, ByteBuddyAgent.AgentProvider.ForExistingAgent
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForExistingAgent
(File agent) Creates an agent provider for an existing agent. -
Method Summary
-
Field Details
-
agent
The supplied agent.
-
-
Constructor Details
-
ForExistingAgent
Creates an agent provider for an existing agent.- Parameters:
agent
- The supplied agent.
-
-
Method Details
-
resolve
Provides an agent jar file for attachment.- Specified by:
resolve
in interfaceByteBuddyAgent.AgentProvider
- Returns:
- The provided agent.
-