| Modifier and Type | Class and Description |
|---|---|
| public static enum | InternalFlags.
Options for controlling whether Guice uses bytecode generation at runtime. |
| public static enum | InternalFlags.
Options for enable or disable using ansi color in error messages. |
| public static enum | InternalFlags.
The options for Guice custom class loading. |
| public static enum | InternalFlags.
The options for Guice stack trace collection. |
| public static enum | InternalFlags.
Options for handling nullable parameters used in provides methods. |
| Modifier and Type | Field and Description |
|---|---|
| private static final InternalFlags. | |
| private static final InternalFlags. | |
| private static final InternalFlags. | |
| private static final InternalFlags. | |
| private static final Logger | |
| private static final InternalFlags. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static InternalFlags. | |
| public static InternalFlags. | |
| public static InternalFlags. | |
| private static <T extends Enum | Returns: value of the option, defaultValue if not setof the system option name, T if the option is not set defaultValue)Gets the system option indicated by the specified key; runs as a privileged action. |
| private static <T extends Enum | Returns: value of the option, defaultValue if not set, secureValue if no accessof the system option name, T if the option is not set defaultValue, T if the security manager disallows access to the option secureValue)Gets the system option indicated by the specified key; runs as a privileged action. |
| public static boolean |
| BYTECODE_GEN_OPTION | back to summary |
|---|---|
| private static final InternalFlags. | |
| COLORIZE_OPTION | back to summary |
|---|---|
| private static final InternalFlags. | |
| CUSTOM_CLASS_LOADING | back to summary |
|---|---|
| private static final InternalFlags. | |
| INCLUDE_STACK_TRACES | back to summary |
|---|---|
| private static final InternalFlags. | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| NULLABLE_PROVIDES | back to summary |
|---|---|
| private static final InternalFlags. | |
| InternalFlags | back to summary |
|---|---|
| private InternalFlags() | |
| enableColorizeErrorMessages | back to summary |
|---|---|
| public static boolean enableColorizeErrorMessages() | |
| getCustomClassLoadingOption | back to summary |
|---|---|
| public static InternalFlags. | |
| getIncludeStackTraceOption | back to summary |
|---|---|
| public static InternalFlags. | |
| getNullableProvidesOption | back to summary |
|---|---|
| public static InternalFlags. | |
| getSystemOption | back to summary |
|---|---|
| private static <T extends Enum Gets the system option indicated by the specified key; runs as a privileged action.
| |
| getSystemOption | back to summary |
|---|---|
| private static <T extends Enum Gets the system option indicated by the specified key; runs as a privileged action.
| |
| isBytecodeGenEnabled | back to summary |
|---|---|
| public static boolean isBytecodeGenEnabled() | |
Bytecode generation is generally faster than using reflection when invoking application
code, however, it can use more memory and slower in certain cases due to the time spent in
generating the classes. If you prefer to use reflection over bytecode generation then set
BytecodeGenOption to DISABLED.
| Modifier and Type | Field and Description |
|---|---|
| public static final InternalFlags. | DISABLED
Bytecode generation is disabled and using features that require it such as method interception will throw errors at run time. |
| public static final InternalFlags. | ENABLED
Bytecode generation is enabled. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static InternalFlags. | |
| public static InternalFlags. |
| DISABLED | back to summary |
|---|---|
| public static final InternalFlags. Bytecode generation is disabled and using features that require it such as method interception will throw errors at run time. | |
| ENABLED | back to summary |
|---|---|
| public static final InternalFlags. Bytecode generation is enabled. | |
| BytecodeGenOption | back to summary |
|---|---|
| private BytecodeGenOption() | |
| valueOf | back to summary |
|---|---|
| public static InternalFlags. | |
| values | back to summary |
|---|---|
| public static InternalFlags. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final InternalFlags. | |
| public static final InternalFlags. | |
| public static final InternalFlags. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract boolean | |
| public static InternalFlags. | |
| public static InternalFlags. |
| AUTO | back to summary |
|---|---|
| public static final InternalFlags. | |
| OFF | back to summary |
|---|---|
| public static final InternalFlags. | |
| ON | back to summary |
|---|---|
| public static final InternalFlags. | |
| ColorizeOption | back to summary |
|---|---|
| private ColorizeOption() | |
| enabled | back to summary |
|---|---|
| pack-priv abstract boolean enabled() | |
| valueOf | back to summary |
|---|---|
| public static InternalFlags. | |
| values | back to summary |
|---|---|
| public static InternalFlags. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final InternalFlags. | ANONYMOUS
Define fast/enhanced types anonymously as hidden nest-mates, never creates class loaders. |
| public static final InternalFlags. | BRIDGE
Attempt to define fast/enhanced types in the same class loader as their original type. |
| public static final InternalFlags. | CHILD
Define fast/enhanced types in a child class loader whose parent is the original class loader. |
| public static final InternalFlags. | OFF
Define fast/enhanced types in the same class loader as their original type, never creates class loaders. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static InternalFlags. | |
| public static InternalFlags. |
| ANONYMOUS | back to summary |
|---|---|
| public static final InternalFlags. Define fast/enhanced types anonymously as hidden nest-mates, never creates class loaders. This is faster than regular class loading and the resulting classes are easier to unload. Note with this option you cannot look up fast/enhanced types by name or mock/spy them. | |
| BRIDGE | back to summary |
|---|---|
| public static final InternalFlags. Attempt to define fast/enhanced types in the same class loader as their original type. Otherwise creates a child class loader whose parent is the original class loader. (Default) | |
| CHILD | back to summary |
|---|---|
| public static final InternalFlags. Define fast/enhanced types in a child class loader whose parent is the original class loader. Note with this option you cannot intercept package-private methods. | |
| OFF | back to summary |
|---|---|
| public static final InternalFlags. Define fast/enhanced types in the same class loader as their original type, never creates
class loaders. Uses | |
| CustomClassLoadingOption | back to summary |
|---|---|
| private CustomClassLoadingOption() | |
| valueOf | back to summary |
|---|---|
| public static InternalFlags. | |
| values | back to summary |
|---|---|
| public static InternalFlags. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final InternalFlags. | OFF
No stack trace collection |
| public static final InternalFlags. | ONLY_FOR_DECLARING_SOURCE
Minimum stack trace collection (Default) |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static InternalFlags. | |
| public static InternalFlags. |
| OFF | back to summary |
|---|---|
| public static final InternalFlags. No stack trace collection | |
| ONLY_FOR_DECLARING_SOURCE | back to summary |
|---|---|
| public static final InternalFlags. Minimum stack trace collection (Default) | |
| IncludeStackTraceOption | back to summary |
|---|---|
| private IncludeStackTraceOption() | |
| valueOf | back to summary |
|---|---|
| public static InternalFlags. | |
| values | back to summary |
|---|---|
| public static InternalFlags. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final InternalFlags. | ERROR
Error if null parameters are passed to non-@Nullable parameters of provides parameters |
| public static final InternalFlags. | IGNORE
Ignore null parameters to @Provides methods. |
| public static final InternalFlags. | WARN
Warn if null parameters are passed to non-@Nullable parameters of provides methods. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static InternalFlags. | |
| public static InternalFlags. |
| ERROR | back to summary |
|---|---|
| public static final InternalFlags. Error if null parameters are passed to non-@Nullable parameters of provides parameters | |
| IGNORE | back to summary |
|---|---|
| public static final InternalFlags. Ignore null parameters to @Provides methods. | |
| WARN | back to summary |
|---|---|
| public static final InternalFlags. Warn if null parameters are passed to non-@Nullable parameters of provides methods. | |
| NullableProvidesOption | back to summary |
|---|---|
| private NullableProvidesOption() | |
| valueOf | back to summary |
|---|---|
| public static InternalFlags. | |
| values | back to summary |
|---|---|
| public static InternalFlags. | |