org.wildfly.swarm.config.SingletonConsumer Maven / Gradle / Ivy
package org.wildfly.swarm.config;
import org.wildfly.swarm.config.Singleton;
import java.lang.FunctionalInterface;
@FunctionalInterface
public interface SingletonConsumer> {
/**
* Configure a pre-constructed instance of Singleton resource
*
* @parameter Instance of Singleton to configure
* @return nothing
*/
void accept(T value);
default SingletonConsumer andThen(SingletonConsumer after) {
return (c) -> {
this.accept(c);
after.accept(c);
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy