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