@ConfigurationProperties(prefix="developmentMode", ignoreUnknownFields=false) public class DevelopmentModeProperties extends Object
Configuration properties that are only used in development mode. This object
is injected with properties having the developmentMode.*
prefix.
The developmentMode.enabled
property allows setting various
options that are only desirable during development (e.g. turning off caches)
in a single place.
Instances of this class are safe for concurrent read access but are not safe for concurrent write access. Typically, this should not be a problem because an instance of this class is initialized once at application startup and then only used for read access.
Constructor and Description |
---|
DevelopmentModeProperties() |
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled()
Tells whether the development mode is enabled.
|
void |
setEnabled(boolean enabled)
Sets the development mode.
|
public boolean isEnabled()
true
if the development mode is enabled,
false
if running in production mode.public void setEnabled(boolean enabled)
false
.enabled
- true
if the development mode should be enabled,
false
if it should be disabled.Copyright © 2011–2017 aquenos GmbH. All rights reserved.