类 LambdaSafe.LambdaSafeCallback<C,A,SELF extends LambdaSafe.LambdaSafeCallback<C,A,SELF>>
java.lang.Object
cn.taketoday.util.LambdaSafe.LambdaSafeCallback<C,A,SELF>
- 类型参数:
C- the callback typeA- the primary argument typeSELF- the self class reference
- 直接已知子类:
LambdaSafe.Callback,LambdaSafe.Callbacks
- 封闭类:
- LambdaSafe
protected abstract static class LambdaSafe.LambdaSafeCallback<C,A,SELF extends LambdaSafe.LambdaSafeCallback<C,A,SELF>>
extends Object
Abstract base class for lambda safe callbacks.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected final <R> LambdaSafe.InvocationResult<R>private booleanprivate voidlogNonMatchingType(C callback, ClassCastException ex) private SELFself()private booleanstartsWithArgumentClassName(String message) private booleanstartsWithArgumentClassName(String message, Object argument) (专用程序包) SELFwithFilter(LambdaSafe.Filter<C, A> filter) Use a specific filter to determine when a callback should apply.withLogger(Logger logger) Use the specified logger to report any lambda failures.withLogger(Class<?> loggerSource) Use the specified logger source to report any lambda failures.
-
字段详细资料
-
log
-
argument
-
callbackType
-
additionalArguments
-
filter
-
-
构造器详细资料
-
LambdaSafeCallback
-
-
方法详细资料
-
withLogger
Use the specified logger source to report any lambda failures.- 参数:
loggerSource- the logger source to use- 返回:
- this instance
-
withLogger
Use the specified logger to report any lambda failures.- 参数:
logger- the logger to use- 返回:
- this instance
-
withFilter
Use a specific filter to determine when a callback should apply. If no explicit filter is set filter will be attempted using the generic type on the callback type.- 参数:
filter- the filter to use- 返回:
- this instance
-
invoke
-
isLambdaGenericProblem
-
startsWithArgumentClassName
-
startsWithArgumentClassName
-
logNonMatchingType
-
self
-