Class EnvironConfigInjector
java.lang.Object
io.leandev.appfuse.env.EnvironConfigInjector
- All Implemented Interfaces:
org.springframework.boot.EnvironmentPostProcessor, org.springframework.core.Ordered
public class EnvironConfigInjector
extends Object
implements org.springframework.boot.EnvironmentPostProcessor, org.springframework.core.Ordered
-
Field Summary
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) static voidReplay deferred logs to the actual logger when logging system is ready.
-
Constructor Details
-
EnvironConfigInjector
public EnvironConfigInjector()
-
-
Method Details
-
replayDeferredLogs
public static void replayDeferredLogs()Replay deferred logs to the actual logger when logging system is ready. Should be called from EnvironInitializer after ApplicationEnvironmentPreparedEvent. -
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.EnvironmentPostProcessor
-