Package io.quarkus.deployment.builditem
Class HotDeploymentWatchedFileBuildItem
- java.lang.Object
-
- io.quarkus.builder.item.BuildItem
-
- io.quarkus.builder.item.MultiBuildItem
-
- io.quarkus.deployment.builditem.HotDeploymentWatchedFileBuildItem
-
public final class HotDeploymentWatchedFileBuildItem extends MultiBuildItem
Identifies a file from areloadable module
that, if modified, may result in a hot redeployment when in the dev mode.A file may be identified with an exact location or a matching predicate. See
HotDeploymentWatchedFileBuildItem.Builder.setLocation(String)
andHotDeploymentWatchedFileBuildItem.Builder.setLocationPredicate(Predicate)
.If multiple build items match the same file then the final value of
restartNeeded
is computed as a logical OR of all theisRestartNeeded()
values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HotDeploymentWatchedFileBuildItem.Builder
-
Constructor Summary
Constructors Constructor Description HotDeploymentWatchedFileBuildItem(String location)
HotDeploymentWatchedFileBuildItem(String location, boolean restartNeeded)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HotDeploymentWatchedFileBuildItem.Builder
builder()
String
getLocation()
Predicate<String>
getLocationPredicate()
boolean
hasLocation()
boolean
hasLocationPredicate()
boolean
isRestartNeeded()
-
-
-
Method Detail
-
builder
public static HotDeploymentWatchedFileBuildItem.Builder builder()
-
getLocation
public String getLocation()
- Returns:
- a location a file from a reloadable module
-
hasLocation
public boolean hasLocation()
-
getLocationPredicate
public Predicate<String> getLocationPredicate()
- Returns:
- a predicate used to match a file from a reloadable module
-
hasLocationPredicate
public boolean hasLocationPredicate()
-
isRestartNeeded
public boolean isRestartNeeded()
- Returns:
true
if a file change should result in an application restart,false
otherwise
-
-