/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */
package org.wildfly.extension.clustering.web;

import org.jboss.as.controller.PathElement;
import org.jboss.as.controller.ResourceRegistration;

/**
 * Enumerates session management resource registrations.
 * @author Paul Ferraro
 */
public enum SessionManagementResourceRegistration implements ResourceRegistration {
    INFINISPAN("infinispan-session-management"),
    HOTROD("hotrod-session-management"),
    ;
    private final PathElement path;

    SessionManagementResourceRegistration(String key) {
        this.path = PathElement.pathElement(key);
    }

    @Override
    public PathElement getPathElement() {
        return this.path;
    }
}
