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
  • Field Details

  • Constructor Details

    • ApplicationConfiguration

      public ApplicationConfiguration()
  • Method Details

    • getDefaultCharset

      @NonNull public @NonNull Charset getDefaultCharset()
      Returns:
      The default charset to use.
    • setDefaultCharset

      public void setDefaultCharset(Charset defaultCharset)
      Default value (UTF-8).
      Parameters:
      defaultCharset - Set the default charset to use.
    • getName

      public Optional<String> 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

      public void setName(String name)
      Parameters:
      name - Set the application name
    • getInstance

      Returns:
      Configuration for the application instance
    • setInstance

      public void setInstance(ApplicationConfiguration.InstanceConfiguration instance)
      Parameters:
      instance - The instance configuration