[go: up one dir, main page]

Menu

Tree [a5b4f5] v0.5.2 / utils / agent-loader /
 History

HTTPS access


File Date Author Commit
 src 2015-10-16 johnou johnou [ead71f] Decouple orbit-actors-core from orbit-agent-loader
 README.md 2015-04-21 Sperry, Daniel Sperry, Daniel [579ea9] Renaming tools to utils.
 pom.xml 2015-11-18 Joe Hegarty Joe Hegarty [a5b4f5] Version 0.5.2

Read Me

Orbit Agent Loader

Orbit 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 -javaavent jvm parameter).
It was developed by BioWare, a division of Electronic Arts.

Documentation

Documentation is located here.

License

Orbit 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!");
    }
}