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