Class InternalFlags

java.lang.Object
com.google.inject.internal.InternalFlags

public final class InternalFlags extends Object
Contains flags for Guice.
  • Field Details

  • Constructor Details

    • InternalFlags

      private InternalFlags()
  • Method Details

    • getIncludeStackTraceOption

      public static InternalFlags.IncludeStackTraceOption getIncludeStackTraceOption()
    • getCustomClassLoadingOption

      public static InternalFlags.CustomClassLoadingOption getCustomClassLoadingOption()
    • getNullableProvidesOption

      public static InternalFlags.NullableProvidesOption getNullableProvidesOption()
    • isBytecodeGenEnabled

      public static boolean isBytecodeGenEnabled()
    • enableColorizeErrorMessages

      public static boolean enableColorizeErrorMessages()
    • getSystemOption

      private static <T extends Enum<T>> T getSystemOption(String name, T defaultValue)
      Gets the system option indicated by the specified key; runs as a privileged action.
      Parameters:
      name - of the system option
      defaultValue - if the option is not set
      Returns:
      value of the option, defaultValue if not set
    • getSystemOption

      private static <T extends Enum<T>> T getSystemOption(String name, T defaultValue, T secureValue)
      Gets the system option indicated by the specified key; runs as a privileged action.
      Parameters:
      name - of the system option
      defaultValue - if the option is not set
      secureValue - if the security manager disallows access to the option
      Returns:
      value of the option, defaultValue if not set, secureValue if no access