Package ratpack.core.impose
Class ForceDevelopmentImposition
- java.lang.Object
-
- ratpack.core.impose.ForceDevelopmentImposition
-
- All Implemented Interfaces:
Imposition
public final class ForceDevelopmentImposition extends Object implements Imposition
Forces whether to start the application inServerConfig.isDevelopment()
mode or not.This imposition is used by
ServerConfigBuilder
. If present, the imposed value will be used regardless of any previously specified setting on the builder.Note, this can be used to force development mode or force not development mode. Though, it is more commonly used for the former.
- Since:
- 1.2
- See Also:
Impositions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDevelopment()
The value to impose.static ForceDevelopmentImposition
of(boolean development)
Creates a new imposition of the specified value.
-
-
-
Method Detail
-
of
public static ForceDevelopmentImposition of(boolean development)
Creates a new imposition of the specified value.- Parameters:
development
- the value to impose- Returns:
- a newly created imposition
-
isDevelopment
public boolean isDevelopment()
The value to impose.- Returns:
- the value to impose
-
-