Class CachedReturnPlugin$Object


  • class CachedReturnPlugin$Object
    extends java.lang.Object
    An advice class for caching a reference value.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CachedReturnPlugin$Object()
      A constructor that prohibits the instantiation of the class.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.lang.Object enter​(java.lang.Object cached)
      The enter advice.
      protected static void exit​(java.lang.Object returned, java.lang.Object cached)
      The exit advice.
      • Methods inherited from class java.lang.Object

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

      • CachedReturnPlugin$Object

        private CachedReturnPlugin$Object()
        A constructor that prohibits the instantiation of the class.
    • Method Detail

      • enter

        @OnMethodEnter(skipOn=OnNonDefaultValue.class)
        protected static java.lang.Object enter​(java.lang.Object cached)
        The enter advice.
        Parameters:
        cached - The cached field's value.
        Returns:
        true if a cached value exists.
      • exit

        @OnMethodExit
        protected static void exit​(@Return(readOnly=false,typing=DYNAMIC)
                                   java.lang.Object returned,
                                   java.lang.Object cached)
        The exit advice.
        Parameters:
        returned - The value that was returned by the method's execution or 0 if it was not executed.
        cached - The previously cached value or 0 if no previous value exists.