Skip to content

Provides the ability to load java agents to a running java process

Notifications You must be signed in to change notification settings

avaje-common/avaje-agentloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

avaje-agentloader

Maven Central : avaje-agentloader

Provides the ability to load java agents to a running java process

Maven Dependency

<dependency>
  <groupId>org.avaje</groupId>
  <artifactId>avaje-agentloader</artifactId>
  <version>3.0.1</version>
</dependency>

Example Usage

    public void someApplicationBootupMethod() {
    
      // Load the agent into the running JVM process
      
      // preferred method:
      AgentLoader.loadAgentByMainClass("io.ebean.enhance.Transformer", "debug=1");
      
      // No longer recommended (does not work reliable on jar-in-jar)
      AgentLoader.loadAgentFromClasspath("ebean-agent","debug=1");
      
    }

About

Provides the ability to load java agents to a running java process

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •