Serializable, Comparable<ApplicationComponentInstantiateStrategy>public enum ApplicationComponentInstantiateStrategy extends Enum<ApplicationComponentInstantiateStrategy>
| Enum Constant | Description |
|---|---|
CONSTRUCTOR |
Use constructor with optional
GenerateApplicationComponent.dependencies() as constructor parameters. |
SERVICE_LOADER |
Use unique service loader instance.
|
SUPPLIER |
Use a supplier.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ApplicationComponentInstantiateStrategy |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ApplicationComponentInstantiateStrategy[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApplicationComponentInstantiateStrategy CONSTRUCTOR
GenerateApplicationComponent.dependencies() as constructor parameters.
This is the default behaviour.
public static final ApplicationComponentInstantiateStrategy SERVICE_LOADER
ServiceLoaders.loadUniqueService(Class)public static final ApplicationComponentInstantiateStrategy SUPPLIER
public static ApplicationComponentInstantiateStrategy[] values()
for (ApplicationComponentInstantiateStrategy c : ApplicationComponentInstantiateStrategy.values()) System.out.println(c);
public static ApplicationComponentInstantiateStrategy 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 © 2019–2020 Ultreia.io. All rights reserved.