Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢捷峰
discovery
Commits
7c6eaf43
Commit
7c6eaf43
authored
Aug 21, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重构策略模块
parent
bcc9e135
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
discovery-plugin-strategy-extension-gateway/src/main/java/com/nepxion/discovery/plugin/strategy/extension/gateway/adapter/VersionDiscoveryEnabledAdapter.java
+2
-2
discovery-plugin-strategy-extension-service/src/main/java/com/nepxion/discovery/plugin/strategy/extension/service/adapter/VersionDiscoveryEnabledAdapter.java
+2
-2
discovery-plugin-strategy-extension-zuul/src/main/java/com/nepxion/discovery/plugin/strategy/extension/zuul/adapter/VersionDiscoveryEnabledAdapter.java
+2
-2
No files found.
discovery-plugin-strategy-extension-gateway/src/main/java/com/nepxion/discovery/plugin/strategy/extension/gateway/adapter/VersionDiscoveryEnabledAdapter.java
View file @
7c6eaf43
...
@@ -32,7 +32,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
...
@@ -32,7 +32,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
return
false
;
return
false
;
}
}
return
apply
Extension
(
server
,
metadata
);
return
apply
Strategy
(
server
,
metadata
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
...
@@ -62,7 +62,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
...
@@ -62,7 +62,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
return
false
;
return
false
;
}
}
private
boolean
apply
Extension
(
Server
server
,
Map
<
String
,
String
>
metadata
)
{
private
boolean
apply
Strategy
(
Server
server
,
Map
<
String
,
String
>
metadata
)
{
if
(
discoveryEnabledStrategy
==
null
)
{
if
(
discoveryEnabledStrategy
==
null
)
{
return
true
;
return
true
;
}
}
...
...
discovery-plugin-strategy-extension-service/src/main/java/com/nepxion/discovery/plugin/strategy/extension/service/adapter/VersionDiscoveryEnabledAdapter.java
View file @
7c6eaf43
...
@@ -33,7 +33,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
...
@@ -33,7 +33,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
return
false
;
return
false
;
}
}
return
apply
Extension
(
server
,
metadata
);
return
apply
Strategy
(
server
,
metadata
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
...
@@ -67,7 +67,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
...
@@ -67,7 +67,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
return
false
;
return
false
;
}
}
private
boolean
apply
Extension
(
Server
server
,
Map
<
String
,
String
>
metadata
)
{
private
boolean
apply
Strategy
(
Server
server
,
Map
<
String
,
String
>
metadata
)
{
if
(
discoveryEnabledStrategy
==
null
)
{
if
(
discoveryEnabledStrategy
==
null
)
{
return
true
;
return
true
;
}
}
...
...
discovery-plugin-strategy-extension-zuul/src/main/java/com/nepxion/discovery/plugin/strategy/extension/zuul/adapter/VersionDiscoveryEnabledAdapter.java
View file @
7c6eaf43
...
@@ -32,7 +32,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
...
@@ -32,7 +32,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
return
false
;
return
false
;
}
}
return
apply
Extension
(
server
,
metadata
);
return
apply
Strategy
(
server
,
metadata
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
...
@@ -62,7 +62,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
...
@@ -62,7 +62,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
return
false
;
return
false
;
}
}
private
boolean
apply
Extension
(
Server
server
,
Map
<
String
,
String
>
metadata
)
{
private
boolean
apply
Strategy
(
Server
server
,
Map
<
String
,
String
>
metadata
)
{
if
(
discoveryEnabledStrategy
==
null
)
{
if
(
discoveryEnabledStrategy
==
null
)
{
return
true
;
return
true
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment