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