Package io.quarkus.deployment
Class IsProduction
java.lang.Object
io.quarkus.deployment.IsProduction
- All Implemented Interfaces:
BooleanSupplier
boolean supplier that returns true if the application is running in production
mode i.e. either NORMAL or RUN. Intended for use with
BuildStep.onlyIf()-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IsProduction
public IsProduction(io.quarkus.runtime.LaunchMode launchMode)
-
-
Method Details
-
getAsBoolean
public boolean getAsBoolean()- Specified by:
getAsBooleanin interfaceBooleanSupplier
-