Package com.google.inject.internal
Class InternalFlags
- java.lang.Object
-
- com.google.inject.internal.InternalFlags
-
public class InternalFlags extends java.lang.Object
Contains flags for Guice.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InternalFlags.CustomClassLoadingOption
The options for Guice custom class loading.static class
InternalFlags.IncludeStackTraceOption
The options for Guice stack trace collection.static class
InternalFlags.NullableProvidesOption
-
Field Summary
Fields Modifier and Type Field Description private static InternalFlags.CustomClassLoadingOption
CUSTOM_CLASS_LOADING
private static InternalFlags.IncludeStackTraceOption
INCLUDE_STACK_TRACES
private static java.util.logging.Logger
logger
private static InternalFlags.NullableProvidesOption
NULLABLE_PROVIDES
-
Constructor Summary
Constructors Constructor Description InternalFlags()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InternalFlags.CustomClassLoadingOption
getCustomClassLoadingOption()
static InternalFlags.IncludeStackTraceOption
getIncludeStackTraceOption()
static InternalFlags.NullableProvidesOption
getNullableProvidesOption()
private static <T extends java.lang.Enum<T>>
TgetSystemOption(java.lang.String name, T defaultValue)
Gets the system option indicated by the specified key; runs as a privileged action.private static <T extends java.lang.Enum<T>>
TgetSystemOption(java.lang.String name, T defaultValue, T secureValue)
Gets the system option indicated by the specified key; runs as a privileged action.private static InternalFlags.CustomClassLoadingOption
parseCustomClassLoadingOption()
private static InternalFlags.IncludeStackTraceOption
parseIncludeStackTraceOption()
private static InternalFlags.NullableProvidesOption
parseNullableProvidesOption(InternalFlags.NullableProvidesOption defaultValue)
-
-
-
Field Detail
-
logger
private static final java.util.logging.Logger logger
-
INCLUDE_STACK_TRACES
private static final InternalFlags.IncludeStackTraceOption INCLUDE_STACK_TRACES
-
CUSTOM_CLASS_LOADING
private static final InternalFlags.CustomClassLoadingOption CUSTOM_CLASS_LOADING
-
NULLABLE_PROVIDES
private static final InternalFlags.NullableProvidesOption NULLABLE_PROVIDES
-
-
Method Detail
-
getIncludeStackTraceOption
public static InternalFlags.IncludeStackTraceOption getIncludeStackTraceOption()
-
getCustomClassLoadingOption
public static InternalFlags.CustomClassLoadingOption getCustomClassLoadingOption()
-
getNullableProvidesOption
public static InternalFlags.NullableProvidesOption getNullableProvidesOption()
-
parseIncludeStackTraceOption
private static InternalFlags.IncludeStackTraceOption parseIncludeStackTraceOption()
-
parseCustomClassLoadingOption
private static InternalFlags.CustomClassLoadingOption parseCustomClassLoadingOption()
-
parseNullableProvidesOption
private static InternalFlags.NullableProvidesOption parseNullableProvidesOption(InternalFlags.NullableProvidesOption defaultValue)
-
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 optiondefaultValue
- 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 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
-
-