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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final recordstatic classstatic class -
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 #51209booleanbooleanstatic <T extends Startable>
DevServicesResultBuildItem.OwnedServiceBuilder<T> owned()
-
Method Details
-
discovered
-
owned
-
getName
-
getDescription
-
getContainerId
-
isStartable
public boolean isStartable() -
getConfig
-
getServiceName
-
getServiceConfig
- Returns:
- the identifying configuration
-
getStartableSupplier
-
getPostStartAction
-
getConfig
-
getOverrideConfig
@Deprecated(since="3.27", forRemoval=true) public Map<String,String> getOverrideConfig(Startable startable) Deprecated, for removal: This API element is subject to removal in a future version.Subject to changes due to #51209 -
hasDependencies
public boolean hasDependencies() -
getDependencies
public Set<DevServicesResultBuildItem.DevServiceConfigDependency<? extends Startable>> getDependencies() -
getOptionalDependencies
public Set<DevServicesResultBuildItem.DevServiceConfigDependency<? extends Startable>> getOptionalDependencies()
-