public static enum ConfiguredBy.CreationPolicy extends Enum<ConfiguredBy.CreationPolicy>
Enum Constant and Description |
---|
EAGER
Instances of services with this policy will
be created as soon as their backing instances
become available
|
ON_DEMAND
Instances of services with this policy will
be created when some user code creates explicit
demand for the service.
|
Modifier and Type | Method and Description |
---|---|
static ConfiguredBy.CreationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfiguredBy.CreationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfiguredBy.CreationPolicy ON_DEMAND
public static final ConfiguredBy.CreationPolicy EAGER
public static ConfiguredBy.CreationPolicy[] values()
for (ConfiguredBy.CreationPolicy c : ConfiguredBy.CreationPolicy.values()) System.out.println(c);
public static ConfiguredBy.CreationPolicy 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 nullCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.