Package org.keycloak.compatibility
Class FeatureCompatibilityMetadataProvider
java.lang.Object
org.keycloak.compatibility.FeatureCompatibilityMetadataProvider
- All Implemented Interfaces:
CompatibilityMetadataProvider
public class FeatureCompatibilityMetadataProvider
extends Object
implements CompatibilityMetadataProvider
-
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, waitMethods inherited from interface org.keycloak.compatibility.CompatibilityMetadataProvider
priority
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
FeatureCompatibilityMetadataProvider
public FeatureCompatibilityMetadataProvider()
-
-
Method Details
-
metadata
Description copied from interface:CompatibilityMetadataProviderProvides the metadata to be persisted.If an empty
Mapis returned, no information about this implementation will be persisted. Anullreturn value is not supported, and it will interrupt the process.- Specified by:
metadatain interfaceCompatibilityMetadataProvider- Returns:
- The metadata required by this provider to determine if a rolling update is possible.
-
isCompatible
Description copied from interface:CompatibilityMetadataProviderIt compares the current metadata withotherfrom another deployment.The default implementation will allow a rolling update if the metadata from the current server is equal to the
other. Implementations can overwrite this method as required.- Specified by:
isCompatiblein interfaceCompatibilityMetadataProvider- Parameters:
other- The other deployment metadata. It only contains the metadata from this implementation.- Returns:
- The
CompatibilityResultwith the outcome. - See Also:
-
getId
- Specified by:
getIdin interfaceCompatibilityMetadataProvider- Returns:
- The ID of this implementation. It should be unique as implementation with the same ID and priority is not valid.
-