Java Code Examples for com.alibaba.dubbo.registry.common.domain.Provider#setOverrides()
The following examples show how to use
com.alibaba.dubbo.registry.common.domain.Provider#setOverrides() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OverrideUtils.java From dubbox with Apache License 2.0 | 6 votes |
public static void setProviderOverrides(Provider provider, List<Override> overrides) { if (provider == null || overrides == null) { return; } List<Override> result = new ArrayList<Override>(overrides.size()); for(Override override : overrides){ if (! override.isEnabled()) { continue; } if (override.isMatch(provider)) { result.add(override); } if (override.isUniqueMatch(provider)) { provider.setOverride(override); } } provider.setOverrides(overrides); }
Example 2
Source File: OverrideUtils.java From dubbox-hystrix with Apache License 2.0 | 6 votes |
public static void setProviderOverrides(Provider provider, List<Override> overrides) { if (provider == null || overrides == null) { return; } List<Override> result = new ArrayList<Override>(overrides.size()); for(Override override : overrides){ if (! override.isEnabled()) { continue; } if (override.isMatch(provider)) { result.add(override); } if (override.isUniqueMatch(provider)) { provider.setOverride(override); } } provider.setOverrides(overrides); }
Example 3
Source File: OverrideUtils.java From dubbo3 with Apache License 2.0 | 6 votes |
public static void setProviderOverrides(Provider provider, List<Override> overrides) { if (provider == null || overrides == null) { return; } List<Override> result = new ArrayList<Override>(overrides.size()); for(Override override : overrides){ if (! override.isEnabled()) { continue; } if (override.isMatch(provider)) { result.add(override); } if (override.isUniqueMatch(provider)) { provider.setOverride(override); } } provider.setOverrides(overrides); }
Example 4
Source File: OverrideUtils.java From dubbox with Apache License 2.0 | 6 votes |
public static void setProviderOverrides(Provider provider, List<Override> overrides) { if (provider == null || overrides == null) { return; } List<Override> result = new ArrayList<Override>(overrides.size()); for(Override override : overrides){ if (! override.isEnabled()) { continue; } if (override.isMatch(provider)) { result.add(override); } if (override.isUniqueMatch(provider)) { provider.setOverride(override); } } provider.setOverrides(overrides); }
Example 5
Source File: OverrideUtils.java From dubbox with Apache License 2.0 | 6 votes |
public static void setProviderOverrides(Provider provider, List<Override> overrides) { if (provider == null || overrides == null) { return; } List<Override> result = new ArrayList<Override>(overrides.size()); for(Override override : overrides){ if (! override.isEnabled()) { continue; } if (override.isMatch(provider)) { result.add(override); } if (override.isUniqueMatch(provider)) { provider.setOverride(override); } } provider.setOverrides(overrides); }