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