Interface ControlPanelModuleConfiguration
- All Superinterfaces:
io.micronaut.core.util.Toggleable
@ConfigurationProperties("micronaut.control-panel")
public interface ControlPanelModuleConfiguration
extends io.micronaut.core.util.Toggleable
Configuration properties for the control panel module.
- Since:
- 1.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Field Details
-
DEFAULT_ENABLED
- See Also:
-
DEFAULT_ALLOWED_ENVIRONMENTS
- See Also:
-
DEFAULT_PATH
- See Also:
-
PREFIX
- See Also:
-
PROPERTY_ENABLED
- See Also:
-
PROPERTY_ALLOWED_ENVIRONMENTS
- See Also:
-
PROPERTY_PATH
- See Also:
-
-
Method Details
-
isEnabled
@Bindable(defaultValue="true") boolean isEnabled()Enables/disables the control panel module. Default value: "true".- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
getAllowedEnvironments
Configures the environments where the control panel module is enabled. By default, it is only enabled in the "dev" and "test" environments.- Returns:
- the environments where the control panel module is enabled.
-
getPath
Configures the path where the control panel can be accessed. Default value: "/control-panel".- Returns:
- the path where the control panel module is available.
-