Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
b4818979
Commit
b4818979
authored
Jan 04, 2018
by
Igor Kryvenko
Committed by
Ryan Baxter
Jan 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes gh - 2594 (#2611)
parent
bf67680f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
ConditionalOnRibbonAndEurekaEnabled.java
...ix/ribbon/eureka/ConditionalOnRibbonAndEurekaEnabled.java
+16
-0
RibbonEurekaAutoConfiguration.java
.../netflix/ribbon/eureka/RibbonEurekaAutoConfiguration.java
+2
-10
No files found.
spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/ribbon/eureka/ConditionalOnRibbonAndEurekaEnabled.java
0 → 100644
View file @
b4818979
package
org
.
springframework
.
cloud
.
netflix
.
ribbon
.
eureka
;
import
org.springframework.context.annotation.Conditional
;
import
java.lang.annotation.*
;
/**
* @author Igor Kryvenko
*/
@Target
({
ElementType
.
TYPE
,
ElementType
.
METHOD
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Documented
@Conditional
(
RibbonEurekaAutoConfiguration
.
OnRibbonAndEurekaEnabledCondition
.
class
)
public
@interface
ConditionalOnRibbonAndEurekaEnabled
{
}
spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/ribbon/eureka/RibbonEurekaAutoConfiguration.java
View file @
b4818979
...
@@ -46,20 +46,12 @@ import com.netflix.niws.loadbalancer.DiscoveryEnabledNIWSServerList;
...
@@ -46,20 +46,12 @@ import com.netflix.niws.loadbalancer.DiscoveryEnabledNIWSServerList;
*/
*/
@Configuration
@Configuration
@EnableConfigurationProperties
@EnableConfigurationProperties
@
RibbonEurekaAutoConfiguration
.
ConditionalOnRibbonAndEurekaEnabled
@ConditionalOnRibbonAndEurekaEnabled
@AutoConfigureAfter
(
RibbonAutoConfiguration
.
class
)
@AutoConfigureAfter
(
RibbonAutoConfiguration
.
class
)
@RibbonClients
(
defaultConfiguration
=
EurekaRibbonClientConfiguration
.
class
)
@RibbonClients
(
defaultConfiguration
=
EurekaRibbonClientConfiguration
.
class
)
public
class
RibbonEurekaAutoConfiguration
{
public
class
RibbonEurekaAutoConfiguration
{
@Target
({
ElementType
.
TYPE
,
ElementType
.
METHOD
})
static
class
OnRibbonAndEurekaEnabledCondition
extends
AllNestedConditions
{
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Documented
@Conditional
(
OnRibbonAndEurekaEnabledCondition
.
class
)
@interface
ConditionalOnRibbonAndEurekaEnabled
{
}
private
static
class
OnRibbonAndEurekaEnabledCondition
extends
AllNestedConditions
{
public
OnRibbonAndEurekaEnabledCondition
()
{
public
OnRibbonAndEurekaEnabledCondition
()
{
super
(
ConfigurationPhase
.
REGISTER_BEAN
);
super
(
ConfigurationPhase
.
REGISTER_BEAN
);
...
...
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