io.earcam.instrumental.agent.FakeAgent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of io.earcam.instrumental.agent Show documentation
Show all versions of io.earcam.instrumental.agent Show documentation
Dynamically load a Java Agent or acquire java.lang.instrument.Instrumentation via SPI
The newest version!
/*-
* #%L
* io.earcam.instrumental.agent
* %%
* Copyright (C) 2018 earcam
* %%
* SPDX-License-Identifier: (BSD-3-Clause OR EPL-1.0 OR Apache-2.0 OR MIT)
*
* You must choose to accept, in full - any individual or combination of
* the following licenses:
*
* - BSD-3-Clause
* - EPL-1.0
* - Apache-2.0
* - MIT
*
* #L%
*/
package io.earcam.instrumental.agent;
import java.lang.instrument.Instrumentation;
/**
*
* FakeAgent class.
*
*/
@SuppressWarnings("squid:S1118")
public final class FakeAgent {
/**
*
* agentmain.
*
*
* @param agentArgs a {@link java.lang.String} object.
* @param instrumentation a {@link java.lang.instrument.Instrumentation} object.
*/
@SuppressWarnings("unused")
public static void agentmain(String agentArgs, Instrumentation instrumentation)
{
InstrumentationServiceProvider.instance = instrumentation;
}
}