public enum LifecycleInjectorMode extends java.lang.Enum<LifecycleInjectorMode>
| Enum Constant and Description |
|---|
REAL_CHILD_INJECTORS
Deprecated.
using Guice child injectors has unwanted side effects. It also makes some patterns (e.g. injecting the Injector) difficult
|
SIMULATED_CHILD_INJECTORS
In this mode
LifecycleInjector no longer uses Guice child injectors. |
| Modifier and Type | Method and Description |
|---|---|
static LifecycleInjectorMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LifecycleInjectorMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LifecycleInjectorMode REAL_CHILD_INJECTORS
public static final LifecycleInjectorMode SIMULATED_CHILD_INJECTORS
LifecycleInjector no longer uses Guice child injectors. Instead, bootstrap objects are copied into a new injectorpublic static LifecycleInjectorMode[] values()
for (LifecycleInjectorMode c : LifecycleInjectorMode.values()) System.out.println(c);
public static LifecycleInjectorMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null