-
Notifications
You must be signed in to change notification settings - Fork 31
io microsphere spring cloud openfeign autoconfigure FeignClientAutoRefreshAutoConfiguration
Type: Class | Module: microsphere-spring-cloud-openfeign | Package: io.microsphere.spring.cloud.openfeign.autoconfigure | Since: 0.0.1
The Auto-Configuration class for EnableFeignAutoRefresh
public class FeignClientAutoRefreshAutoConfigurationAuthor: 韩超
-
Introduced in:
0.0.1 -
Current Project Version:
0.2.9-SNAPSHOT
This component is tested and compatible with the following Java versions:
| Java Version | Status |
|---|---|
| Java 17 | ✅ Compatible |
| Java 21 | ✅ Compatible |
| Java 25 | ✅ Compatible |
// Invoked automatically by the Spring event system on application ready
onApplicationReadyEvent(applicationReadyEvent);// Automatically registered as a Spring bean
FeignComponentRegistry registry = feignClientRegistry(clientProperties, beanFactory);Add the following dependency to your pom.xml:
<dependency>
<groupId>io.github.microsphere-projects</groupId>
<artifactId>microsphere-spring-cloud-openfeign</artifactId>
<version>${microsphere-spring-cloud.version}</version>
</dependency>Tip: Use the BOM (
microsphere-spring-cloud-dependencies) for consistent version management. See the Getting Started guide.
import io.microsphere.spring.cloud.openfeign.autoconfigure.FeignClientAutoRefreshAutoConfiguration;| Method | Description |
|---|---|
onApplicationReadyEvent |
Handles the ApplicationReadyEvent to register the |
feignClientRegistry |
Make sure the FeignClientConfigurationChangedListener is registered after the ConfigurationPropertiesRebinder |
public void onApplicationReadyEvent(ApplicationReadyEvent event)Handles the ApplicationReadyEvent to register the
FeignClientConfigurationChangedListener after the application is fully initialized.
Example Usage:
`// Invoked automatically by the Spring event system on application ready onApplicationReadyEvent(applicationReadyEvent); `
public FeignComponentRegistry feignClientRegistry(FeignClientProperties clientProperties, BeanFactory beanFactory)Make sure the FeignClientConfigurationChangedListener is registered after the ConfigurationPropertiesRebinder / registerFeignClientConfigurationChangedListener(event); }
/**
Creates the FeignComponentRegistry bean that tracks decorated Feign components
and supports auto-refresh when configuration properties change.
Example Usage:
`// Automatically registered as a Spring bean FeignComponentRegistry registry = feignClientRegistry(clientProperties, beanFactory); `
EnableFeignAutoRefresh
This documentation was auto-generated from the source code of microsphere-spring-cloud.
spring-cloud-commons
- AbstractServiceRegistrationEndpoint
- CommonsPropertyConstants
- ConditionalOnAutoServiceRegistrationEnabled
- ConditionalOnFeaturesEnabled
- ConditionalOnLoadBalancerEnabled
- ConditionalOnMultipleRegistrationEnabled
- ConditionalOnUtilEnabled
- DefaultRegistration
- DiscoveryClientAutoConfiguration
- DiscoveryClientConstants
- DiscoveryUtils
- EventPublishingRegistrationAspect
- FaultTolerancePropertyConstants
- InMemoryServiceRegistry
- InstanceConstants
- LoadBalancerUtils
- MultipleAutoServiceRegistration
- MultipleRegistration
- MultipleServiceRegistry
- ReactiveDiscoveryClientAdapter
- ReactiveDiscoveryClientAutoConfiguration
- RegistrationCustomizer
- RegistrationDeregisteredEvent
- RegistrationEvent
- RegistrationMetaData
- RegistrationPreDeregisteredEvent
- RegistrationPreRegisteredEvent
- RegistrationRegisteredEvent
- ServiceDeregistrationEndpoint
- ServiceInstanceUtils
- ServiceInstancesChangedEvent
- ServiceRegistrationEndpoint
- ServiceRegistrationEndpointAutoConfiguration
- ServiceRegistryAutoConfiguration
- SimpleAutoServiceRegistration
- SimpleAutoServiceRegistrationAutoConfiguration
- SimpleServiceRegistry
- SpecificationAutoConfiguration
- SpecificationBeanPostProcessor
- SpecificationCustomizer
- SpringCloudPropertyConstants
- TomcatDynamicConfigurationListener
- TomcatFaultToleranceAutoConfiguration
- UnionDiscoveryClient
- WebFluxServiceRegistryAutoConfiguration
- WebMvcServiceRegistryAutoConfiguration
- WebServiceRegistryAutoConfiguration
- WeightedRoundRobin
spring-cloud-openfeign
- AutoRefreshCapability
- AutoRefreshCapabilityCustomizer
- CompositedRequestInterceptor
- DecoratedContract
- DecoratedDecoder
- DecoratedEncoder
- DecoratedErrorDecoder
- DecoratedFeignComponent
- DecoratedQueryMapEncoder
- DecoratedRetryer
- EnableFeignAutoRefresh
- FeignAutoConfiguration
- FeignClientAutoRefreshAutoConfiguration
- FeignClientConfigurationChangedListener
- FeignComponentRegistry
- NoOpRequestInterceptor
- Refreshable