接口 ContextConsumer<C extends ApplicationContext>
- 类型参数:
C
- the application context type
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Callback interface used to process an
ApplicationContext
with the ability to
throw a (checked) exception.- 从以下版本开始:
- 2.0.0
- 作者:
- Stephane Nicoll, Andy Wilkinson
- 另请参阅:
-
方法概要
修饰符和类型方法说明void
Performs this operation on the suppliedcontext
.default ContextConsumer
<C> andThen
(ContextConsumer<? super C> after) Returns a composedContextConsumer
that performs, in sequence, this operation followed by theafter
operation.
-
方法详细资料
-
accept
Performs this operation on the suppliedcontext
.- 参数:
context
- the application context to consume- 抛出:
Throwable
- any exception that might occur in assertions
-
andThen
Returns a composedContextConsumer
that performs, in sequence, this operation followed by theafter
operation.- 参数:
after
- the operation to perform after this operation- 返回:
- a composed
ContextConsumer
that performs in sequence this operation followed by theafter
operation - 从以下版本开始:
- 2.6.0
-