Package io.quarkus.deployment.builditem
Class DevServicesResultBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.DevServicesResultBuildItem
public final class DevServicesResultBuildItem
extends io.quarkus.builder.item.MultiBuildItem
BuildItem for discovered (running) or to be started dev services.
Processors are expected to return this build item not only when the dev service first starts, but also if a running dev service already exists.
Two builders are provided to create this build item:
- discovered() for discovered dev services, provides config to be injected to the
application with container id (if it exists).
- owned() for owned dev services, that will be started before application start,
provides the startable supplier and config injected to the application and post-start action.
DevServicesResultBuildItem.RunningDevService is deprecated in favor of builder flavors.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDevServicesResultBuildItem(String name, String description, String serviceName, Object serviceConfig, Map<String, String> config, Supplier<Startable> startableSupplier, Consumer<Startable> postStartAction, Map<String, Function<Startable, String>> applicationConfigProvider, Set<String> highPriorityConfig) Deprecated.use DevServicesResultBuildItem.builder() insteadDevServicesResultBuildItem(String name, String description, String containerId, Map<String, String> config) Deprecated.use DevServicesResultBuildItem.builder() insteadDeprecated.use DevServicesResultBuildItem.builder() instead -
Method Summary
Modifier and TypeMethodDescriptiongetName()getOverrideConfig(Startable startable) Deprecated, for removal: This API element is subject to removal in a future version.Subject to changes due to #51209booleanstatic <T extends Startable>
DevServicesResultBuildItem.OwnedServiceBuilder<T> owned()
-
Constructor Details
-
DevServicesResultBuildItem
@Deprecated public DevServicesResultBuildItem(String name, String containerId, Map<String, String> config) Deprecated.use DevServicesResultBuildItem.builder() instead -
DevServicesResultBuildItem
@Deprecated public DevServicesResultBuildItem(String name, String description, String containerId, Map<String, String> config) Deprecated.use DevServicesResultBuildItem.builder() instead -
DevServicesResultBuildItem
@Deprecated public DevServicesResultBuildItem(String name, String description, String serviceName, Object serviceConfig, Map<String, String> config, Supplier<Startable> startableSupplier, Consumer<Startable> postStartAction, Map<String, Function<Startable, String>> applicationConfigProvider, Set<String> highPriorityConfig) Deprecated.use DevServicesResultBuildItem.builder() instead
-
-
Method Details
-
discovered
-
owned
-
getName
-
getDescription
-
getContainerId
-
isStartable
public boolean isStartable() -
getConfig
-
getServiceName
-
getServiceConfig
-
getStartableSupplier
-
getPostStartAction
-
getApplicationConfigProvider
-
getConfig
-
getOverrideConfig
Deprecated, for removal: This API element is subject to removal in a future version.Subject to changes due to #51209
-
discovered()instead.