Class AbstractMethodInvocation

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void clearCheckedException()
      Invoked from the implementation of MethodInvocation.setReturnValue(Object).
      boolean didThrowCheckedException()
      Returns true if the method invocation threw a checked exception.
      <T extends >
      T
      <T> annotationType)
      Returns an instantiated annotation, or null if the target does not have the indicated annotation.
      <T extends >
      T
      <T> exceptionType)
      Retrieves the checked exception assignable to the indicated type, or null if the invocation did not throw a checked exception or the thrown exception is not assignable.
      getInstance()
      The instance on which the method was originally invoked.
      InstanceContext getInstanceContext()  
      getMethod()
      Returns the method being invoked.
      <T extends >
      boolean
      <T> annotationType)
      Checks to see if the target has an annotation of the given type.
      MethodInvocation proceed()
      Proceed with the method invocation, either chaining into the next MethodAdvice added to the method, or ultimately into the actual method implementation.
      protected abstract void proceedToAdvisedMethod()
      This is implemented in a runtime-generated subclass.
      void rethrow()
      If the invocation threw a checked exception, then this method throws that exception wrapped as the cause of a new RuntimeException.
      MethodInvocation  exception)
      Sets the checked exception; this can be used to indicate failure for the method, or to cancel the thrown exception (by setting the exception to null).
      • Methods inherited from class java.lang.

        , , , , , , , , , ,