package com.qianwen.core.context.config; import com.qianwen.core.context.BladeContext; import com.qianwen.core.context.BladeHttpHeadersGetter; import com.qianwen.core.context.BladeServletContext; import com.qianwen.core.context.ServletHttpHeadersGetter; import com.qianwen.core.context.props.BladeContextProperties; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.annotation.Order; @EnableConfigurationProperties({BladeContextProperties.class}) @Configuration(proxyBeanMethods = false) @Order(Integer.MIN_VALUE) /* loaded from: blade-core-context-9.3.0.0-SNAPSHOT.jar:org/springblade/core/context/config/BladeContextAutoConfiguration.class */ public class BladeContextAutoConfiguration { @ConditionalOnMissingBean @Bean public BladeHttpHeadersGetter bladeHttpHeadersGetter(BladeContextProperties contextProperties) { return new ServletHttpHeadersGetter(contextProperties); } @ConditionalOnMissingBean @Bean public BladeContext bladeContext(BladeContextProperties contextProperties, BladeHttpHeadersGetter httpHeadersGetter) { return new BladeServletContext(contextProperties, httpHeadersGetter); } }