-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce DevServicesDatasourceContainerConfig
Passing that many parameters was a bit problematic, especially when having to add new ones.
- Loading branch information
Showing
11 changed files
with
106 additions
and
62 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
.../main/java/io/quarkus/datasource/deployment/spi/DevServicesDatasourceContainerConfig.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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package io.quarkus.datasource.deployment.spi; | ||
|
||
import java.util.Map; | ||
import java.util.Optional; | ||
import java.util.OptionalInt; | ||
|
||
public class DevServicesDatasourceContainerConfig { | ||
|
||
private final Optional<String> imageName; | ||
private final Map<String, String> containerProperties; | ||
private final Map<String, String> additionalJdbcUrlProperties; | ||
private final OptionalInt fixedExposedPort; | ||
|
||
public DevServicesDatasourceContainerConfig(Optional<String> imageName, | ||
Map<String, String> containerProperties, | ||
Map<String, String> additionalJdbcUrlProperties, | ||
OptionalInt port) { | ||
this.imageName = imageName; | ||
this.containerProperties = containerProperties; | ||
this.additionalJdbcUrlProperties = additionalJdbcUrlProperties; | ||
this.fixedExposedPort = port; | ||
} | ||
|
||
public Optional<String> getImageName() { | ||
return imageName; | ||
} | ||
|
||
public Map<String, String> getContainerProperties() { | ||
return containerProperties; | ||
} | ||
|
||
public Map<String, String> getAdditionalJdbcUrlProperties() { | ||
return additionalJdbcUrlProperties; | ||
} | ||
|
||
public OptionalInt getFixedExposedPort() { | ||
return fixedExposedPort; | ||
} | ||
} |
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
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
Oops, something went wrong.