All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.factoryfx.jetty.ServletAndPathFactory Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package io.github.factoryfx.jetty;

import io.github.factoryfx.factory.FactoryBase;
import io.github.factoryfx.factory.SimpleFactoryBase;
import io.github.factoryfx.factory.attribute.dependency.FactoryPolymorphicAttribute;
import io.github.factoryfx.factory.attribute.types.StringAttribute;
import jakarta.servlet.Servlet;

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 - 2024 Weber Informatics LLC | Privacy Policy