-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Config to interfaces in order to make registrars optionals
- Loading branch information
1 parent
e5b8679
commit 50daf7f
Showing
6 changed files
with
41 additions
and
38 deletions.
There are no files selected for viewing
14 changes: 6 additions & 8 deletions
14
extensions/smallrye-stork/runtime/src/main/java/io/quarkus/stork/ServiceConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
package io.quarkus.stork; | ||
|
||
import java.util.Optional; | ||
|
||
import io.quarkus.runtime.annotations.ConfigGroup; | ||
import io.quarkus.runtime.annotations.ConfigItem; | ||
|
||
@ConfigGroup | ||
public class ServiceConfiguration { | ||
public interface ServiceConfiguration { | ||
/** | ||
* ServiceDiscovery configuration for the service | ||
*/ | ||
@ConfigItem | ||
public StorkServiceDiscoveryConfiguration serviceDiscovery; | ||
StorkServiceDiscoveryConfiguration serviceDiscovery(); | ||
|
||
/** | ||
* LoadBalancer configuration for the service | ||
*/ | ||
@ConfigItem | ||
public StorkLoadBalancerConfiguration loadBalancer; | ||
StorkLoadBalancerConfiguration loadBalancer(); | ||
|
||
/** | ||
* ServiceRegistrar configuration for the service | ||
*/ | ||
@ConfigItem | ||
public StorkServiceRegistrarConfiguration serviceRegistrar; | ||
Optional<StorkServiceRegistrarConfiguration> serviceRegistrar(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters