Class ConfigService


  • public class ConfigService
    extends Object
    Decided the build analytics behaviour. Retrieves, stores and provides the configuration.
    • Field Detail

      • QUARKUS_ANALYTICS_DISABLED_LOCAL_PROP

        public static final String QUARKUS_ANALYTICS_DISABLED_LOCAL_PROP
        See Also:
        Constant Field Values
      • ACCEPTANCE_PROMPT

        public static final String ACCEPTANCE_PROMPT
    • Method Detail

      • userAcceptance

        public void userAcceptance​(Function<String,​String> analyticsEnabledSupplier)
      • isActive

        public boolean isActive()
        True if build time analytics can be gathered.

        Disabled by default.

        If running on CI, false.

        If Not explicitly approved by user in dev mode, false

        If analytics disabled by local property, false

        If remote config not accessible, false

        If disabled by remote config, false

        Returns:
        true if active
      • isArtifactActive

        public boolean isArtifactActive​(String groupId,
                                        String quarkusVersion)
        If groupId has been disabled by local static config, false If Quarkus version has been disabled by remote config, false
        Parameters:
        groupId -
        quarkusVersion -
        Returns:
        true if active