EA Agent Loader Parent

EA Agent Loader is a collection of utilities for java agent developers.

License

License

GroupId

GroupId

com.ea.agentloader
ArtifactId

ArtifactId

ea-agent-loader-parent
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

pom
Description

Description

EA Agent Loader Parent
EA Agent Loader is a collection of utilities for java agent developers.
Project URL

Project URL

https://github.com/electronicarts/ea-agent-loader/
Project Organization

Project Organization

Electronic Arts Inc
Source Code Management

Source Code Management

https://github.com/electronicarts/ea-agent-loader

Download ea-agent-loader-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.ea.agentloader/ea-agent-loader-parent/ -->
<dependency>
    <groupId>com.ea.agentloader</groupId>
    <artifactId>ea-agent-loader-parent</artifactId>
    <version>1.0.3</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.ea.agentloader/ea-agent-loader-parent/
implementation 'com.ea.agentloader:ea-agent-loader-parent:1.0.3'
// https://jarcasting.com/artifacts/com.ea.agentloader/ea-agent-loader-parent/
implementation ("com.ea.agentloader:ea-agent-loader-parent:1.0.3")
'com.ea.agentloader:ea-agent-loader-parent:pom:1.0.3'
<dependency org="com.ea.agentloader" name="ea-agent-loader-parent" rev="1.0.3">
  <artifact name="ea-agent-loader-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.ea.agentloader', module='ea-agent-loader-parent', version='1.0.3')
)
libraryDependencies += "com.ea.agentloader" % "ea-agent-loader-parent" % "1.0.3"
[com.ea.agentloader/ea-agent-loader-parent "1.0.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • agent-loader

EA Agent Loader

Project Deprecated

With the introduction of JDK9, dynamically self attaching Java Agents is considered bad practice. As such we are deprecating this project and will no longer continue to maintain it. The project remains here for reference and for JDK8 users.

Brief

EA Agent Loader is a collection of utilities for java agent developers. It allows programmers to write and test their java agents using dynamic agent loading (without using the -javaagent jvm parameter).

Developer & License

This project was developed by Electronic Arts and is licensed under the BSD 3-Clause License.

Example

public class HelloAgentWorld
{
    public static class HelloAgent
    {
        public static void agentmain(String agentArgs, Instrumentation inst)
        {
            System.out.println(agentArgs);
            System.out.println("Hi from the agent!");
            System.out.println("I've got instrumentation!: " + inst);
        }
    }

    public static void main(String[] args)
    {
        AgentLoader.loadAgentClass(HelloAgent.class.getName(), "Hello!");
    }
}
com.ea.agentloader

Electronic Arts

Versions

Version
1.0.3
1.0.2
1.0.1
1.0.0
0.9.0