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