Package org.apache.dubbo.spring.boot.env
Class DubboDefaultPropertiesEnvironmentPostProcessor
java.lang.Object
org.apache.dubbo.spring.boot.env.DubboDefaultPropertiesEnvironmentPostProcessor
- All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor,org.springframework.core.Ordered
public class DubboDefaultPropertiesEnvironmentPostProcessor
extends Object
implements org.springframework.boot.env.EnvironmentPostProcessor, org.springframework.core.Ordered
The lowest precedence
EnvironmentPostProcessor processes
Spring Boot default properties for Dubbo
as late as possible before application context refresh.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe property name of "spring.main.allow-bean-definition-overriding".static final Stringstatic final StringThe name of defaultPropertySourcedefined in SpringApplication#configurePropertySources method.static final Stringstatic final StringFields 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)
-
Field Details
-
PROPERTY_SOURCE_NAME
The name of defaultPropertySourcedefined in SpringApplication#configurePropertySources method.- See Also:
-
ALLOW_BEAN_DEFINITION_OVERRIDING_PROPERTY
The property name of "spring.main.allow-bean-definition-overriding". Please refer to: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1-Release-Notes#bean-overriding- See Also:
-
DUBBO_THREAD_POOL_PROPERTY
- See Also:
-
VIRTUAL_THREAD
- See Also:
-
SPRING_THREAD_POOL_PROPERTY
- See Also:
-
-
Constructor Details
-
DubboDefaultPropertiesEnvironmentPostProcessor
public DubboDefaultPropertiesEnvironmentPostProcessor()
-
-
Method Details
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) - Specified by:
postProcessEnvironmentin interfaceorg.springframework.boot.env.EnvironmentPostProcessor
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-