private static void logPointCutCreation(final ExtensionClassAndMethodMatcher pc) {
   final String msg =
       MessageFormat.format(
           "Extension instrumentation point: {0} {1}",
           pc.getClassMatcher(), pc.getMethodMatcher());
   Agent.LOG.finest(msg);
 }
Beispiel #2
0
 public static URL getClassResource(ClassLoader loader, String internalClassName) {
   if (loader == null) {
     loader = ClassLoader.getSystemClassLoader();
   }
   if ((Agent.LOG.isFinestEnabled()) && (internalClassName.endsWith(".class.class"))) {
     Agent.LOG.finest("Invalid resource name " + internalClassName);
   }
   URL url = loader.getResource(getClassResourceName(internalClassName));
   if (url == null) {
     url = BootstrapLoader.get().getBootstrapResource(internalClassName);
   }
   return url;
 }
 public ReflectionStyleClassMethodAdapter(
     GenericClassAdapter genericClassAdapter,
     MethodVisitor mv,
     int access,
     Method method,
     int tracerFactoryId) {
   super(genericClassAdapter, mv, access, method);
   this.tracerFactoryId = tracerFactoryId;
   if (Agent.LOG.isFinestEnabled()) {
     Agent.LOG.finest(
         "Using fallback instrumentation on "
             + genericClassAdapter.className
             + "/"
             + methodName
             + methodDesc);
   }
 }