Class CommandLineUsagePropertyProvider

java.lang.Object
org.axonframework.update.configuration.CommandLineUsagePropertyProvider
All Implemented Interfaces:
UsagePropertyProvider

@Internal public class CommandLineUsagePropertyProvider extends Object implements UsagePropertyProvider
A UsagePropertyProvider implementation that reads the usage properties from the command line system properties. This is the highest priority provider, meaning any defined property will override the others.
Since:
5.0.0
Author:
Mitchell Herrijgers
  • Field Details

    • DISABLED_KEY

      public static final String DISABLED_KEY
      The system property key to check if the update checker is disabled.
      See Also:
    • URL_KEY

      public static final String URL_KEY
      The system property key to retrieve the URL for the usage collection endpoint.
      See Also:
  • Constructor Details

    • CommandLineUsagePropertyProvider

      public CommandLineUsagePropertyProvider()
  • Method Details

    • getDisabled

      public Boolean getDisabled()
      Description copied from interface: UsagePropertyProvider
      Returns whether the Anonymous Usage Collection is disabled.
      Specified by:
      getDisabled in interface UsagePropertyProvider
      Returns:
      true if the collection is disabled, null if not specified, or false if enabled.
    • getUrl

      public String getUrl()
      Description copied from interface: UsagePropertyProvider
      Returns the URL for the Anonymous Usage Collection endpoint.
      Specified by:
      getUrl in interface UsagePropertyProvider
      Returns:
      The URL as a String, or null if not specified.
    • priority

      public int priority()
      Description copied from interface: UsagePropertyProvider
      Returns the priority of this property provider. Higher values indicate higher priority. Providers with higher priority will be checked first when retrieving properties.
      Specified by:
      priority in interface UsagePropertyProvider
      Returns:
      An int representing the priority of this provider.