Package org.apache.camel.spring.boot
Class CamelVirtualThreadEnvironmentPostProcessor
java.lang.Object
org.apache.camel.spring.boot.CamelVirtualThreadEnvironmentPostProcessor
- All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor
public class CamelVirtualThreadEnvironmentPostProcessor
extends Object
implements org.springframework.boot.env.EnvironmentPostProcessor
Environment post processor that automatically sets the Camel virtual thread
system property when Spring Boot virtual threads are enabled.
This processor runs very early in the Spring Boot startup process, before
any Camel classes are loaded, ensuring that Camel's ThreadType static
initialization picks up the correct virtual thread configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpostProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
-
Constructor Details
-
CamelVirtualThreadEnvironmentPostProcessor
public CamelVirtualThreadEnvironmentPostProcessor()
-
-
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
-