Package org.keycloak.compatibility
Class KeycloakCompatibilityMetadataProvider
java.lang.Object
org.keycloak.compatibility.KeycloakCompatibilityMetadataProvider
- All Implemented Interfaces:
CompatibilityMetadataProvider
public class KeycloakCompatibilityMetadataProvider
extends Object
implements CompatibilityMetadataProvider
A
CompatibilityMetadataProvider
implementation to provide the Keycloak version.-
Field Summary
FieldsFields inherited from interface org.keycloak.compatibility.CompatibilityMetadataProvider
DEFAULT_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.compatibility.CompatibilityMetadataProvider
isCompatible, priority
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
KeycloakCompatibilityMetadataProvider
public KeycloakCompatibilityMetadataProvider()
-
-
Method Details
-
metadata
Description copied from interface:CompatibilityMetadataProvider
Provides the metadata to be persisted.If an empty
Map
is returned, no information about this implementation will be persisted. Anull
return value is not supported, and it will interrupt the process.- Specified by:
metadata
in interfaceCompatibilityMetadataProvider
- Returns:
- The metadata required by this provider to determine if a rolling update is possible.
-
getId
- Specified by:
getId
in interfaceCompatibilityMetadataProvider
- Returns:
- The ID of this implementation. It should be unique as implementation with the same ID and priority is not valid.
-