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
The options for Guice custom class loading.static enum
The options for Guice stack trace collection.static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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 TypeMethodDescriptionprivate 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.private static InternalFlags.CustomClassLoadingOption
private static InternalFlags.IncludeStackTraceOption
private static InternalFlags.NullableProvidesOption
-
Field Details
-
logger
-
INCLUDE_STACK_TRACES
-
CUSTOM_CLASS_LOADING
-
NULLABLE_PROVIDES
-
-
Constructor Details
-
InternalFlags
public InternalFlags()
-
-
Method Details
-
getIncludeStackTraceOption
-
getCustomClassLoadingOption
-
getNullableProvidesOption
-
parseIncludeStackTraceOption
-
parseCustomClassLoadingOption
-
parseNullableProvidesOption
private static InternalFlags.NullableProvidesOption parseNullableProvidesOption(InternalFlags.NullableProvidesOption defaultValue) -
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
-