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;
public class ServletAndPathFactory> extends SimpleFactoryBase {
public final StringAttribute pathSpec = new StringAttribute().labelText("pathSpec");
public final FactoryPolymorphicAttribute servlet = new FactoryPolymorphicAttribute().labelText("Servlet");
@Override
public ServletAndPath createImpl() {
return new ServletAndPath(pathSpec.get(),servlet.instance());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy