Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WFLY-19078 [Community] - Update the elytron-oidc-client subsystem par…
…ser to enumerate schema versions
- Loading branch information
1 parent
1efa979
commit 767c8de
Showing
27 changed files
with
1,786 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...ent/src/main/java/org/wildfly/extension/elytron/oidc/ElytronOidcClientSubsystemModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright The WildFly Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.wildfly.extension.elytron.oidc; | ||
|
||
import org.jboss.as.controller.ModelVersion; | ||
import org.jboss.as.controller.SubsystemModel; | ||
|
||
/** | ||
* Enumeration of elytron-oidc-client subsystem model versions. | ||
* @author <a href="mailto:prpaul@redhat.com">Prarthona Paul</a> | ||
*/ | ||
|
||
enum ElytronOidcClientSubsystemModel implements SubsystemModel { | ||
VERSION_1_0_0(1, 0, 0), | ||
VERSION_2_0_0(2, 0, 0), | ||
VERSION_3_0_0(3, 0, 0), // WildFly 32.0-present | ||
; | ||
static final ElytronOidcClientSubsystemModel CURRENT = VERSION_3_0_0; | ||
|
||
private final ModelVersion version; | ||
|
||
ElytronOidcClientSubsystemModel(int major, int minor, int micro) { | ||
this.version = ModelVersion.create(major, minor, micro); | ||
} | ||
|
||
@Override | ||
public ModelVersion getVersion() { | ||
return this.version; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.