Package io.quarkus.deployment.builditem
Class DevServicesSharedNetworkBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.DevServicesSharedNetworkBuildItem
A marker build item that indicates, if any instances are provided during the build, the containers started by DevServices
may use a shared network.
This is mainly useful in integration tests where the application container needs to be able
to communicate with the service containers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classGenerates aList<Consumer<BuildChainBuilder>> build chain builderwhich creates a build step producing theDevServicesSharedNetworkBuildItembuild item. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a build item without identifying the creator source.Create a build item identifying the creator source. -
Method Summary
Modifier and TypeMethodDescriptionThe creator source of this build item.static booleanisSharedNetworkRequired(DevServicesConfig devServicesConfig, List<DevServicesSharedNetworkBuildItem> devServicesSharedNetworkBuildItem) Helper method for DevServices processors that tells if joining the shared network is required.static booleanisSharedNetworkRequired(GlobalDevServicesConfig globalDevServicesConfig, List<DevServicesSharedNetworkBuildItem> devServicesSharedNetworkBuildItem) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
SOURCE_PROPERTY
- See Also:
-
UNKNOWN_SOURCE
- See Also:
-
-
Constructor Details
-
DevServicesSharedNetworkBuildItem
public DevServicesSharedNetworkBuildItem()Create a build item without identifying the creator source. -
DevServicesSharedNetworkBuildItem
Create a build item identifying the creator source.- Parameters:
source- The identifier of the creator
-
-
Method Details
-
getSource
The creator source of this build item. May be useful to decide whether a DevService should join a shared network.
-
isSharedNetworkRequired(DevServicesConfig, List)instead.