public final class ForceDevelopmentImposition extends Object implements Imposition
ServerConfig.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.
Impositions
Modifier and Type | Method and Description |
---|---|
boolean |
isDevelopment()
The value to impose.
|
static ForceDevelopmentImposition |
of(boolean development)
Creates a new imposition of the specified value.
|
public static ForceDevelopmentImposition of(boolean development)
development
- the value to imposepublic boolean isDevelopment()