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