org.wildfly.swarm.config.webservices.PreHandlerChainConsumer Maven / Gradle / Ivy
The newest version!
package org.wildfly.swarm.config.webservices;
import org.wildfly.swarm.config.webservices.PreHandlerChain;
import java.lang.FunctionalInterface;
@FunctionalInterface
public interface PreHandlerChainConsumer> {
/**
* Configure a pre-constructed instance of PreHandlerChain resource
*
* @parameter Instance of PreHandlerChain to configure
* @return nothing
*/
void accept(T value);
default PreHandlerChainConsumer andThen(PreHandlerChainConsumer after) {
return (c) -> {
this.accept(c);
after.accept(c);
};
}
}