diff options
author | Ivan Dubrov <idubrov@guidewire.com> | 2014-04-25 10:12:58 -0700 |
---|---|---|
committer | Ivan Dubrov <idubrov@guidewire.com> | 2014-04-25 10:12:58 -0700 |
commit | 9cc2c3411ab71ff407e261e0dd7122a8c2dd5751 (patch) | |
tree | ea8be78844796b18025a9671a30225cc6a7059c9 /agent/src/main/java/com/github | |
parent | 53efb2be51b7cdc1519a7bedef9402fe59650ef7 (diff) | |
download | dcevm-9cc2c3411ab71ff407e261e0dd7122a8c2dd5751.tar.gz dcevm-9cc2c3411ab71ff407e261e0dd7122a8c2dd5751.zip |
Renaming org.dcevm -> com.github.dcevm
Well, dcevm.org domain is lost, so let's use com.github.dcevm for now.
Diffstat (limited to 'agent/src/main/java/com/github')
-rw-r--r-- | agent/src/main/java/com/github/dcevm/agent/InstrumentationAgent.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/agent/src/main/java/com/github/dcevm/agent/InstrumentationAgent.java b/agent/src/main/java/com/github/dcevm/agent/InstrumentationAgent.java new file mode 100644 index 00000000..839027a2 --- /dev/null +++ b/agent/src/main/java/com/github/dcevm/agent/InstrumentationAgent.java @@ -0,0 +1,18 @@ +package com.github.dcevm.agent; + +import java.lang.instrument.Instrumentation; + +/** + * Simple agent to get access to the Instrumentation API. + */ +public class InstrumentationAgent { + public static Instrumentation INSTRUMENTATION; + + public static void agentmain(String args, Instrumentation instr) { + INSTRUMENTATION = instr; + } + + public static void premain(String args, Instrumentation instr) { + INSTRUMENTATION = instr; + } +} |