Package com.google.inject.internal
Class InternalFlags
- java.lang.Object
-
- com.google.inject.internal.InternalFlags
-
public class InternalFlags extends java.lang.ObjectContains flags for Guice.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInternalFlags.CustomClassLoadingOptionThe options for Guice custom class loading.static classInternalFlags.IncludeStackTraceOptionThe options for Guice stack trace collection.static classInternalFlags.NullableProvidesOption
-
Field Summary
Fields Modifier and Type Field Description private static InternalFlags.CustomClassLoadingOptionCUSTOM_CLASS_LOADINGprivate static InternalFlags.IncludeStackTraceOptionINCLUDE_STACK_TRACESprivate static java.util.logging.Loggerloggerprivate static InternalFlags.NullableProvidesOptionNULLABLE_PROVIDES
-
Constructor Summary
Constructors Constructor Description InternalFlags()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InternalFlags.CustomClassLoadingOptiongetCustomClassLoadingOption()static InternalFlags.IncludeStackTraceOptiongetIncludeStackTraceOption()static InternalFlags.NullableProvidesOptiongetNullableProvidesOption()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.CustomClassLoadingOptionparseCustomClassLoadingOption()private static InternalFlags.IncludeStackTraceOptionparseIncludeStackTraceOption()private static InternalFlags.NullableProvidesOptionparseNullableProvidesOption(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
-
-