@ConfigurationProperties(value="micronaut.application") @Primary public class ApplicationConfiguration extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ApplicationConfiguration.InstanceConfiguration
Configuration for instance settings.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLICATION_NAME
Property name for Micronaut application name.
|
static java.lang.String |
DEFAULT_CHARSET
Property name for Micronaut default charset.
|
static java.lang.String |
PREFIX
Prefix for Micronaut application settings.
|
Constructor and Description |
---|
ApplicationConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.nio.charset.Charset |
getDefaultCharset() |
ApplicationConfiguration.InstanceConfiguration |
getInstance() |
java.util.Optional<java.lang.String> |
getName()
The application name.
|
void |
setDefaultCharset(java.nio.charset.Charset defaultCharset)
Default value (UTF-8).
|
void |
setInstance(ApplicationConfiguration.InstanceConfiguration instance) |
void |
setName(java.lang.String name) |
public static final java.lang.String PREFIX
public static final java.lang.String DEFAULT_CHARSET
public static final java.lang.String APPLICATION_NAME
public java.nio.charset.Charset getDefaultCharset()
public void setDefaultCharset(java.nio.charset.Charset defaultCharset)
defaultCharset
- Set the default charset to use.public java.util.Optional<java.lang.String> getName()
public void setName(java.lang.String name)
name
- Set the application namepublic ApplicationConfiguration.InstanceConfiguration getInstance()
public void setInstance(ApplicationConfiguration.InstanceConfiguration instance)
instance
- The instance configuration