コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: Utils.java プロジェクト: masonmei/mx
 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;
 }
コード例 #3
0
 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);
   }
 }