Example #1
0
 public static void addMixinInterfacesToBootstrap(final Instrumentation inst) {
   if (isDisableMixinsOnBootstrap()) {
     System.out.println("New Relic Agent: mixin interfaces not moved to bootstrap");
     return;
   }
   JarResource agentJarResource = null;
   try {
     agentJarResource = AgentJarHelper.getAgentJarResource();
     final URL agentJarUrl = AgentJarHelper.getAgentJarUrl();
     addMixinInterfacesToBootstrap(agentJarResource, agentJarUrl, inst);
   } finally {
     try {
       agentJarResource.close();
     } catch (Throwable th) {
       logIfNRDebug("closing Agent jar resource", th);
     }
   }
 }