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 modulethat, 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
restartNeededis computed as a logical OR of all theisRestartNeeded()values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHotDeploymentWatchedFileBuildItem.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.Builderbuilder()StringgetLocation()Predicate<String>getLocationPredicate()booleanhasLocation()booleanhasLocationPredicate()booleanisRestartNeeded()
-
-
-
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:
trueif a file change should result in an application restart,falseotherwise
-
-