io.github.factoryfx.jetty.ServletAndPathFactory Maven / Gradle / Ivy
package io.github.factoryfx.jetty;
import io.github.factoryfx.factory.attribute.types.StringAttribute;
import io.github.factoryfx.factory.FactoryBase;
import io.github.factoryfx.factory.SimpleFactoryBase;
import io.github.factoryfx.factory.attribute.dependency.FactoryPolymorphicAttribute;
import javax.servlet.Servlet;
import java.util.function.Supplier;
public class ServletAndPathFactory> extends SimpleFactoryBase {
public final StringAttribute pathSpec = new StringAttribute().labelText("pathSpec");
public final FactoryPolymorphicAttribute servlet = new FactoryPolymorphicAttribute().labelText("servlets");
@Override
protected ServletAndPath createImpl() {
return new ServletAndPath(pathSpec.get(),servlet.instance());
}
public ServletAndPathFactory(){
this.config().setDisplayTextProvider(pathSpec::get);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy