Package io.micronaut.runtime
Class ApplicationConfiguration
java.lang.Object
io.micronaut.runtime.ApplicationConfiguration
@ConfigurationProperties("micronaut.application")
@Primary
public class ApplicationConfiguration
extends Object
Common application configuration.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Configuration for instance settings. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
The application name.void
setDefaultCharset
(Charset defaultCharset) Default value (UTF-8).void
void
-
Field Details
-
PREFIX
Prefix for Micronaut application settings.- See Also:
-
DEFAULT_CHARSET
Property name for Micronaut default charset.- See Also:
-
APPLICATION_NAME
Property name for Micronaut application name.- See Also:
-
-
Constructor Details
-
ApplicationConfiguration
public ApplicationConfiguration()
-
-
Method Details
-
getDefaultCharset
- Returns:
- The default charset to use.
-
setDefaultCharset
Default value (UTF-8).- Parameters:
defaultCharset
- Set the default charset to use.
-
getName
The application name. Used to identify the application for purposes of reporting, tracing, service discovery etc. Should be unique.- Returns:
- The application name
-
setName
- Parameters:
name
- Set the application name
-
getInstance
- Returns:
- Configuration for the application instance
-
setInstance
- Parameters:
instance
- The instance configuration
-