public static enum BootstrapRegistry.Scope extends 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(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null