diff --git a/controller/src/main/java/org/jboss/as/controller/parsing/ManagementSchema.java b/controller/src/main/java/org/jboss/as/controller/parsing/ManagementSchema.java index 1ac9eb5ef8b..f2e74907538 100644 --- a/controller/src/main/java/org/jboss/as/controller/parsing/ManagementSchema.java +++ b/controller/src/main/java/org/jboss/as/controller/parsing/ManagementSchema.java @@ -60,9 +60,9 @@ public void writeContent(XMLExtendedStreamWriter streamWriter, ModelMarshallingC } public static ManagementSchema create(ManagementXmlReaderWriter readerWriterDelegate, - Stability stability, int majorVersion, String localName) { + Stability stability, int majorVersion, int minorVersion, String localName) { VersionedNamespace namespace = - IntVersionSchema.createURN(List.of(IntVersionSchema.JBOSS_IDENTIFIER, DOMAIN), stability, new IntVersion(majorVersion)); + IntVersionSchema.createURN(List.of(IntVersionSchema.JBOSS_IDENTIFIER, DOMAIN), stability, new IntVersion(majorVersion, minorVersion)); return new ManagementSchema(readerWriterDelegate, namespace, localName); } } \ No newline at end of file diff --git a/controller/src/main/java/org/jboss/as/controller/parsing/ManagementSchemas.java b/controller/src/main/java/org/jboss/as/controller/parsing/ManagementSchemas.java index 8b224388c52..e7e03a54f31 100644 --- a/controller/src/main/java/org/jboss/as/controller/parsing/ManagementSchemas.java +++ b/controller/src/main/java/org/jboss/as/controller/parsing/ManagementSchemas.java @@ -24,10 +24,22 @@ public abstract class ManagementSchemas { private enum Version implements Feature { - VERSION_1(1), - VERSION_2(2), - VERSION_3(3), - VERSION_4(4), + VERSION_1_0(1, 0), + VERSION_1_1(1, 1), + VERSION_1_2(1, 2), + VERSION_1_3(1, 3), + VERSION_1_4(1, 4), + VERSION_1_5(1, 5), + VERSION_1_6(1, 6), + VERSION_1_7(1, 7), + VERSION_1_8(1, 8), + VERSION_2_0(2, 0), + VERSION_2_1(2, 1), + VERSION_2_2(2, 2), + VERSION_3_0(3, 0), + VERSION_4_0(4, 0), + VERSION_4_1(4, 1), + VERSION_4_2(4,2), VERSION_5(5), VERSION_6(6), VERSION_7(7), @@ -47,14 +59,20 @@ private enum Version implements Feature { ; private final int majorVersion; + private final int minorVersion; private final Stability stability; Version(final int majorVersion) { - this(majorVersion, Stability.DEFAULT); + this(majorVersion, 0); } - Version(final int majorVersion, final Stability stability) { + Version(final int majorVersion, final int minorVersion) { + this(majorVersion, minorVersion, Stability.DEFAULT); + } + + Version(final int majorVersion, final int minorVersion, final Stability stability) { this.majorVersion = majorVersion; + this.minorVersion = minorVersion; this.stability = stability; } @@ -62,6 +80,10 @@ public int getMajorVersion() { return majorVersion; } + public int getMinorVersion() { + return minorVersion; + } + @Override public Stability getStability() { return stability; @@ -79,7 +101,7 @@ protected ManagementSchemas(final Stability stability, final ManagementXmlReader maxVersion = version.getMajorVersion(); } allSchemas.add(ManagementSchema.create(stability.enables(version.getStability()) ? readerWriterDelegate - : UnstableManagementReaderWriter.INSTANCE, version.getStability(), version.getMajorVersion(), localName)); + : UnstableManagementReaderWriter.INSTANCE, version.getStability(), version.getMajorVersion(), version.getMinorVersion(), localName)); } Set current = new HashSet<>();