Class ApplicationMetadataEnvironmentPostProcessor

java.lang.Object
net.solarnetwork.central.common.config.ApplicationMetadataEnvironmentPostProcessor
All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor, org.springframework.core.Ordered

public class ApplicationMetadataEnvironmentPostProcessor extends Object implements org.springframework.boot.env.EnvironmentPostProcessor, org.springframework.core.Ordered
Load up application metadata into the environment.
  • Field Details

    • APP_PROP_PREFIX

      public static final String APP_PROP_PREFIX
      The application metadata properties prefix.
      See Also:
    • DEFAULT_MAX_CONTAINER_ID_LENGTH

      public static final int DEFAULT_MAX_CONTAINER_ID_LENGTH
      The default container ID maximum length.
      See Also:
    • ENV_APP_ID_CONTAINER_ID_LENGTH

      public static final String ENV_APP_ID_CONTAINER_ID_LENGTH
      The system environment variable for the maximum application instance ID length, when derived from an ECS container ID.

      The variable value must be an integer; if less than 1 then no maximum length is enforced. If not defined then DEFAULT_MAX_CONTAINER_ID_LENGTH will be used.

      See Also:
  • Constructor Details

  • Method Details

    • setOrder

      public void setOrder(int order)
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • postProcessEnvironment

      public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
      Specified by:
      postProcessEnvironment in interface org.springframework.boot.env.EnvironmentPostProcessor
    • ecsContainerMetadataV4

      public ContainerMetadata ecsContainerMetadataV4(String uri)