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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe application metadata properties prefix.static final intThe default container ID maximum length.static final StringThe system environment variable for the maximum application instance ID length, when derived from an ECS container ID.Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()voidpostProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) voidsetOrder(int order)
-
Field Details
-
APP_PROP_PREFIX
The application metadata properties prefix.- See Also:
-
DEFAULT_MAX_CONTAINER_ID_LENGTH
public static final int DEFAULT_MAX_CONTAINER_ID_LENGTHThe default container ID maximum length.- See Also:
-
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_LENGTHwill be used.- See Also:
-
-
Constructor Details
-
ApplicationMetadataEnvironmentPostProcessor
public ApplicationMetadataEnvironmentPostProcessor()Create a newApplicationMetadataEnvironmentPostProcessorinstance.
-
-
Method Details
-
setOrder
public void setOrder(int order) -
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) - Specified by:
postProcessEnvironmentin interfaceorg.springframework.boot.env.EnvironmentPostProcessor
-
ecsContainerMetadataV4
-