C - the application context type@FunctionalInterface public interface ContextConsumer<C extends ApplicationContext>
ApplicationContext with the ability to
throw a (checked) exception.AbstractApplicationContextRunner| Modifier and Type | Method and Description |
|---|---|
void |
accept(C context)
Performs this operation on the supplied
context. |
default ContextConsumer<C> |
andThen(ContextConsumer<? super C> after)
Returns a composed
ContextConsumer that performs, in sequence, this
operation followed by the after operation. |
void accept(C context) throws Throwable
context.context - the application context to consumeThrowable - any exception that might occur in assertionsdefault ContextConsumer<C> andThen(ContextConsumer<? super C> after)
ContextConsumer that performs, in sequence, this
operation followed by the after operation.after - the operation to perform after this operationContextConsumer that performs in sequence this operation
followed by the after operation