org.wildfly.extension.clustering.ejb.DistributableEjbSubsystemSchema Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-ejb-extension Show documentation
Show all versions of wildfly-clustering-ejb-extension Show documentation
Installs an extension that provides the distributable-ejb subsystem, that defines a set of profiles for use by distributable ejb applications.
/*
* 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);
}
}