public static enum BootstrapRegistry.Scope extends java.lang.Enum<BootstrapRegistry.Scope>
Enum Constant and Description |
---|
PROTOTYPE
A prototype instance.
|
SINGLETON
A singleton instance.
|
Modifier and Type | Method and Description |
---|---|
static BootstrapRegistry.Scope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BootstrapRegistry.Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BootstrapRegistry.Scope SINGLETON
BootstrapRegistry.InstanceSupplier
will be called only once and
the same instance will be returned each time.public static final BootstrapRegistry.Scope PROTOTYPE
BootstrapRegistry.InstanceSupplier
will be called whenever an
instance is needed.public static BootstrapRegistry.Scope[] values()
for (BootstrapRegistry.Scope c : BootstrapRegistry.Scope.values()) System.out.println(c);
public static BootstrapRegistry.Scope 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