Package com.google.inject.internal
Class InternalFlags
java.lang.Object
com.google.inject.internal.InternalFlags
Contains flags for Guice.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Options for controlling whether Guice uses bytecode generation at runtime.static enum
Options for enable or disable using ansi color in error messages.static enum
The options for Guice custom class loading.static enum
The options for Guice stack trace collection.static enum
Options for handling nullable parameters used in provides methods. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final InternalFlags.BytecodeGenOption
private static final InternalFlags.ColorizeOption
private static final InternalFlags.CustomClassLoadingOption
private static final InternalFlags.IncludeStackTraceOption
private static final Logger
private static final InternalFlags.NullableProvidesOption
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
private static <T extends Enum<T>>
TgetSystemOption
(String name, T defaultValue) Gets the system option indicated by the specified key; runs as a privileged action.private static <T extends Enum<T>>
TgetSystemOption
(String name, T defaultValue, T secureValue) Gets the system option indicated by the specified key; runs as a privileged action.static boolean
-
Field Details
-
logger
-
INCLUDE_STACK_TRACES
-
CUSTOM_CLASS_LOADING
-
NULLABLE_PROVIDES
-
BYTECODE_GEN_OPTION
-
COLORIZE_OPTION
-
-
Constructor Details
-
InternalFlags
private InternalFlags()
-
-
Method Details
-
getIncludeStackTraceOption
-
getCustomClassLoadingOption
-
getNullableProvidesOption
-
isBytecodeGenEnabled
public static boolean isBytecodeGenEnabled() -
enableColorizeErrorMessages
public static boolean enableColorizeErrorMessages() -
getSystemOption
Gets the system option indicated by the specified key; runs as a privileged action.- Parameters:
name
- of the system optiondefaultValue
- if the option is not set- Returns:
- value of the option, defaultValue if not set
-
getSystemOption
Gets the system option indicated by the specified key; runs as a privileged action.- Parameters:
name
- of the system optiondefaultValue
- if the option is not setsecureValue
- if the security manager disallows access to the option- Returns:
- value of the option, defaultValue if not set, secureValue if no access
-