Class CachingRelMetadataProvider.CachingInvocationHandler

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler
    Enclosing class:
    CachingRelMetadataProvider

    private class CachingRelMetadataProvider.CachingInvocationHandler
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    Implementation of InvocationHandler for calls to a CachingRelMetadataProvider. Each request first looks in the cache; if the cache entry is present and not expired, returns the cache entry, otherwise computes the value and stores in the cache.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Metadata metadata  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      • Methods inherited from class java.lang.Object

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

      • metadata

        private final Metadata metadata
    • Constructor Detail

      • CachingInvocationHandler

        CachingInvocationHandler​(Metadata metadata)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable