Class Options

java.lang.Object
io.helidon.inject.tools.Options

public class Options extends Object
Options that can be provided via -A (in annotation processing mode), or via system properties or env properties if running normally.
  • Field Details

    • TAG_DEBUG

      public static final String TAG_DEBUG
      Tag for putting Injection's annotation processing into debug mode.
      See Also:
    • TAG_ACCEPT_PREVIEW

      public static final String TAG_ACCEPT_PREVIEW
      Tag to accept this is a preview feature (so no warning is printed).
      See Also:
    • TAG_AUTO_ADD_NON_CONTRACT_INTERFACES

      public static final String TAG_AUTO_ADD_NON_CONTRACT_INTERFACES
      Treat all super types as a contract for a given service type being added.
      See Also:
    • TAG_APPLICATION_PRE_CREATE

      public static final String TAG_APPLICATION_PRE_CREATE
      Pre-creates a placeholder for an Application.
      See Also:
    • TAG_MODULE_NAME

      public static final String TAG_MODULE_NAME
      Identify the module name being processed or the desired target module name.
      See Also:
    • TAG_INJECTION_MODULE_NAME

      public static final String TAG_INJECTION_MODULE_NAME
      Identify the sidecar (module-info.java.inject) module file name or path.
      See Also:
    • TAG_MAP_APPLICATION_TO_SINGLETON_SCOPE

      public static final String TAG_MAP_APPLICATION_TO_SINGLETON_SCOPE
      Identify whether any application scopes (from ee) is translated to Singleton.
      See Also:
    • TAG_IGNORE_UNSUPPORTED_ANNOTATIONS

      public static final String TAG_IGNORE_UNSUPPORTED_ANNOTATIONS
      Identify whether any unsupported types should trigger annotation processing to keep going (the default is to fail).
      See Also:
    • TAG_IGNORE_MODULE_USAGE

      public static final String TAG_IGNORE_MODULE_USAGE
      Identify invalid usage of the module-info.java for appropriate Injection references (the default is to fail).
      See Also:
  • Method Details

    • init

      public static void init(ProcessingEnvironment processingEnv)
      Initialize (applicable for annotation processing only).
      Parameters:
      processingEnv - the processing env
    • isOptionEnabled

      public static boolean isOptionEnabled(String option)
      Only supports the subset of options that Injection cares about, and should not be generally used for options.
      Parameters:
      option - the key (assumed to be meaningful to this class)
      Returns:
      true if the option is enabled
    • getOption

      public static Optional<String> getOption(String option)
      This only supports the subset of options that Injection cares about, and should not be generally used for options.
      Parameters:
      option - the key (assumed to be meaningful to this class)
      Returns:
      the option value