Class InternalFlags


  • public final class InternalFlags
    extends java.lang.Object
    Contains flags for Guice.
    • Constructor Detail

      • InternalFlags

        private InternalFlags()
    • Method Detail

      • isBytecodeGenEnabled

        public static boolean isBytecodeGenEnabled()
      • enableColorizeErrorMessages

        public static boolean enableColorizeErrorMessages()
      • getSystemOption

        private static <T extends java.lang.Enum<T>> T getSystemOption​(java.lang.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 java.lang.Enum<T>> T getSystemOption​(java.lang.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