Class ApiLog


  • public final class ApiLog
    extends java.lang.Object
    Simple logging of method invocations.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ApiLog()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.Class<?>[] getAllInterfaces​(java.lang.Class<?> c)  
      private static void getAllInterfaces​(java.lang.Class<?> c, java.util.Set<java.lang.Class<?>> result)  
      static java.lang.Object logMethodInvocations​(java.lang.Object delegate)
      Creates and returns an object that implements all interfaces that the delegate implements.
      protected static java.lang.String truncate​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApiLog

        private ApiLog()
    • Method Detail

      • logMethodInvocations

        public static java.lang.Object logMethodInvocations​(java.lang.Object delegate)
        Creates and returns an object that implements all interfaces that the delegate implements. All method invocations are forwarded to the delegate, and, after the delegate's method returns, logged to System.err.
      • truncate

        protected static java.lang.String truncate​(java.lang.String s)
      • getAllInterfaces

        private static java.lang.Class<?>[] getAllInterfaces​(java.lang.Class<?> c)
      • getAllInterfaces

        private static void getAllInterfaces​(java.lang.Class<?> c,
                                             java.util.Set<java.lang.Class<?>> result)