Annotation Interface FeatureConditionVersion


@Retention(RUNTIME) @Target(TYPE) public @interface FeatureConditionVersion
Restricts a Feature-annotated class to specific server versions.

If this annotation is present, the feature will only be enabled when the current server version (as reported by Gestalt.getServerVersion()) starts with one of the specified version prefixes, or if one of the values is "ALL".

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The server version prefixes that allow this feature to be enabled.
  • Element Details

    • versions

      String[] versions
      The server version prefixes that allow this feature to be enabled. Use "ALL" to allow any server version.
      Returns:
      the allowed version prefixes