org.springframework.boot.util

Class LambdaSafe.LambdaSafeCallback<C,A,SELF extends LambdaSafe.LambdaSafeCallback<C,A,SELF>>

  • java.lang.Object
    • org.springframework.boot.util.LambdaSafe.LambdaSafeCallback<C,A,SELF>
  • Type Parameters:
    C - the callback type
    A - the primary argument type
    SELF - the self class reference
    Direct Known Subclasses:
    LambdaSafe.Callback, LambdaSafe.Callbacks
    Enclosing class:
    LambdaSafe


    protected abstract static class LambdaSafe.LambdaSafeCallback<C,A,SELF extends LambdaSafe.LambdaSafeCallback<C,A,SELF>>
    extends java.lang.Object
    Abstract base class for lambda safe callbacks.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected <R> LambdaSafe.InvocationResult<R> invoke(C callbackInstance, java.util.function.Supplier<R> supplier) 
      SELF withLogger(java.lang.Class<?> loggerSource)
      Use the specified logger source to report any lambda failures.
      SELF withLogger(org.apache.commons.logging.Log logger)
      Use the specified logger to report any lambda failures.
      • Methods inherited from class java.lang.Object

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

      • withLogger

        public SELF withLogger(java.lang.Class<?> loggerSource)
        Use the specified logger source to report any lambda failures.
        Parameters:
        loggerSource - the logger source to use
        Returns:
        this instance
      • withLogger

        public SELF withLogger(org.apache.commons.logging.Log logger)
        Use the specified logger to report any lambda failures.
        Parameters:
        logger - the logger to use
        Returns:
        this instance