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

org.wildfly.extension.clustering.ejb.DistributableEjbSubsystemSchema Maven / Gradle / Ivy

Go to download

Installs an extension that provides the distributable-ejb subsystem, that defines a set of profiles for use by distributable ejb applications.

There is a newer version: 33.0.2.Final
Show newest version
/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */
package org.wildfly.extension.clustering.ejb;

import org.jboss.as.controller.PersistentResourceXMLDescription;
import org.jboss.as.controller.PersistentSubsystemSchema;
import org.jboss.as.controller.SubsystemSchema;
import org.jboss.as.controller.xml.VersionedNamespace;
import org.jboss.staxmapper.IntVersion;

/**
 * Enumerates the schema versions for the distributable-ejb subsystem.
 * @author Paul Ferraro
 * @author Richard Achmatowicz
 */
public enum DistributableEjbSubsystemSchema implements PersistentSubsystemSchema {

    VERSION_1_0(1, 0), // WildFly 27
    ;
    static final DistributableEjbSubsystemSchema CURRENT = VERSION_1_0;

    private final VersionedNamespace namespace;

    DistributableEjbSubsystemSchema(int major, int minor) {
        this.namespace = SubsystemSchema.createLegacySubsystemURN(DistributableEjbExtension.SUBSYSTEM_NAME, new IntVersion(major, minor));
    }

    @Override
    public VersionedNamespace getNamespace() {
        return this.namespace;
    }

    @Override
    public PersistentResourceXMLDescription getXMLDescription() {
        return DistributableEjbXMLDescriptionFactory.INSTANCE.apply(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy