Interface ContextConsumer<C extends ApplicationContext>
- Type Parameters:
C
- the application context type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface used to process an
ApplicationContext
with the ability to
throw a (checked) exception.- Since:
- 2.0.0
- Author:
- Stephane Nicoll, Andy Wilkinson
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Method Details
-
accept
Performs this operation on the suppliedcontext
.- Parameters:
context
- the application context to consume- Throws:
Throwable
- any exception that might occur in assertions
-
andThen
Returns a composedContextConsumer
that performs, in sequence, this operation followed by theafter
operation.- Parameters:
after
- the operation to perform after this operation- Returns:
- a composed
ContextConsumer
that performs in sequence this operation followed by theafter
operation - Since:
- 2.6.0
-