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

org.wildfly.clustering.web.undertow.UndertowRequirement Maven / Gradle / Ivy

Go to download

This module adapts an implementation of wildfly-clustering-web-spi to the Undertow servlet container.

There is a newer version: 34.0.0.Final
Show newest version
/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.wildfly.clustering.web.undertow;

import org.jboss.as.clustering.controller.RequirementServiceNameFactory;
import org.jboss.as.clustering.controller.ServiceNameFactory;
import org.jboss.as.clustering.controller.ServiceNameFactoryProvider;
import org.wildfly.clustering.service.Requirement;
import org.wildfly.extension.undertow.Capabilities;
import org.wildfly.extension.undertow.UndertowService;

/**
 * @author Paul Ferraro
 */
public enum UndertowRequirement implements Requirement, ServiceNameFactoryProvider {
    UNDERTOW(Capabilities.CAPABILITY_UNDERTOW, UndertowService.class),
    ;
    private final String name;
    private final Class type;
    private final ServiceNameFactory factory = new RequirementServiceNameFactory(this);

    UndertowRequirement(String name, Class type) {
        this.name = name;
        this.type = type;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public Class getType() {
        return this.type;
    }

    @Override
    public ServiceNameFactory getServiceNameFactory() {
        return this.factory;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy