@Configuration @ConditionalOnClass(value=org.apache.shenyu.plugin.global.GlobalPlugin.class) @EnableConfigurationProperties(value=ShenyuRouteProperties.class) public class GlobalPluginConfiguration extends java.lang.Object
| 构造器和说明 |
|---|
GlobalPluginConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.shenyu.sync.data.api.DiscoveryUpstreamDataSubscriber |
discoveryUpstreamDataHandler(org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.plugin.base.handler.DiscoveryUpstreamDataHandler>> discoveryUpstreamDataHandlers)
Common discoveryUpstream Selector subscriber.
|
org.apache.shenyu.plugin.api.ShenyuPlugin |
globalPlugin(org.apache.shenyu.plugin.api.context.ShenyuContextBuilder shenyuContextBuilder)
Global plugin shenyu plugin.
|
org.apache.shenyu.sync.data.api.MetaDataSubscriber |
metaDataCacheSubscriber()
Cache meta data subscriber.
|
org.apache.shenyu.sync.data.api.ProxySelectorDataSubscriber |
proxySelectorDataSubscriber(org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.plugin.base.handler.ProxySelectorDataHandler>> proxySelectorDataHandlers)
Common proxy Selector subscriber.
|
org.apache.shenyu.plugin.api.context.ShenyuContextBuilder |
shenyuContextBuilder(org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.plugin.api.context.ShenyuContextDecorator>> decorators,
ShenyuRouteProperties routeProperties)
Shenyu context builder.
|
@Bean public org.apache.shenyu.plugin.api.ShenyuPlugin globalPlugin(org.apache.shenyu.plugin.api.context.ShenyuContextBuilder shenyuContextBuilder)
shenyuContextBuilder - the shenyu context builder@Bean
@ConditionalOnMissingBean(value=org.apache.shenyu.plugin.api.context.ShenyuContextBuilder.class,
search=ALL)
public org.apache.shenyu.plugin.api.context.ShenyuContextBuilder shenyuContextBuilder(org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.plugin.api.context.ShenyuContextDecorator>> decorators,
ShenyuRouteProperties routeProperties)
decorators - the decoratorsrouteProperties - the route prefix whitelist properties@Bean public org.apache.shenyu.sync.data.api.MetaDataSubscriber metaDataCacheSubscriber()
@Bean public org.apache.shenyu.sync.data.api.ProxySelectorDataSubscriber proxySelectorDataSubscriber(org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.plugin.base.handler.ProxySelectorDataHandler>> proxySelectorDataHandlers)
proxySelectorDataHandlers - proxySelectorDataHandlers@Bean public org.apache.shenyu.sync.data.api.DiscoveryUpstreamDataSubscriber discoveryUpstreamDataHandler(org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.plugin.base.handler.DiscoveryUpstreamDataHandler>> discoveryUpstreamDataHandlers)
discoveryUpstreamDataHandlers - discoveryUpstreamDataHandlersCopyright © 2026 The Apache Software Foundation. All rights reserved.