public enum KeepFactorySource extends java.lang.Enum<KeepFactorySource>
Default instance of Keep factory, to be used in production mode. Contains all methods to retrieve configuration specific items
Enum Constant and Description |
---|
INSTANCE
Singleton to keep global state
|
Modifier and Type | Method and Description |
---|---|
io.vertx.core.json.JsonObject |
getConfig()
Global place where to find configuration settings
|
io.vertx.core.json.JsonObject |
getConfigEvenIfEmpty()
Global place where to find configuration settings
|
KeepFactory |
getCurrentFactory() |
KeepFactorySource |
overwriteFactory(KeepFactory factory)
factoryType - Standard, Test or Custom
|
KeepFactorySource |
reset()
Return to the default factory, production or after test
|
KeepFactorySource |
setConfig(io.vertx.core.json.JsonObject newConfig)
Updates the configuration object
|
static KeepFactorySource |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeepFactorySource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeepFactorySource INSTANCE
public static KeepFactorySource[] values()
for (KeepFactorySource c : KeepFactorySource.values()) System.out.println(c);
public static KeepFactorySource 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 nullpublic io.vertx.core.json.JsonObject getConfig() throws KeepExceptionServer
Global place where to find configuration settings
KeepExceptionServer
public io.vertx.core.json.JsonObject getConfigEvenIfEmpty()
Global place where to find configuration settings
public KeepFactory getCurrentFactory()
public KeepFactorySource overwriteFactory(KeepFactory factory)
factoryType - Standard, Test or Custom
factory
- public KeepFactorySource reset()
Return to the default factory, production or after test
public KeepFactorySource setConfig(io.vertx.core.json.JsonObject newConfig)
Updates the configuration object
newConfig
-