Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

InstrumentationAgent.java 454B

123456789101112131415161718
  1. package com.github.dcevm.agent;
  2. import java.lang.instrument.Instrumentation;
  3. /**
  4. * Simple agent to get access to the Instrumentation API.
  5. */
  6. public class InstrumentationAgent {
  7. public static Instrumentation INSTRUMENTATION;
  8. public static void agentmain(String args, Instrumentation instr) {
  9. INSTRUMENTATION = instr;
  10. }
  11. public static void premain(String args, Instrumentation instr) {
  12. INSTRUMENTATION = instr;
  13. }
  14. }