Class TestResourcesControlPanel
java.lang.Object
io.micronaut.controlpanel.core.AbstractControlPanel<String>
io.micronaut.controlpanel.core.panels.TestResourcesControlPanel
- All Implemented Interfaces:
ConfigurableControlPanel,ControlPanel<String>,io.micronaut.core.naming.Named,io.micronaut.core.order.Ordered,io.micronaut.core.util.Toggleable
@Singleton
@Requires(classes=io.micronaut.testresources.client.TestResourcesClient.class) @Requires(property="micronaut.test.resources.server.uri")
public class TestResourcesControlPanel
extends AbstractControlPanel<String>
A control panel to display a link to the Test Resources control panel.
- Since:
- 2.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.controlpanel.core.ControlPanel
ControlPanel.Category, ControlPanel.View -
Field Summary
FieldsFields inherited from class io.micronaut.controlpanel.core.AbstractControlPanel
configuration, controlPanelNameFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTestResourcesControlPanel(ControlPanelConfiguration configuration, io.micronaut.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptiongetBody()Used to render the body of the control panel.booleanIndicates whether this control panel has additional details that can be displayed.Methods inherited from class io.micronaut.controlpanel.core.AbstractControlPanel
getIcon, getName, getOrder, getTitle, isEnabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.controlpanel.core.ControlPanel
getBadge, getBodyView, getCategory, getDetailedView
-
Field Details
-
NAME
- See Also:
-
TEST_RESOURCES_SERVER_URI
- See Also:
-
-
Constructor Details
-
TestResourcesControlPanel
protected TestResourcesControlPanel(@Named("test-resources") ControlPanelConfiguration configuration, io.micronaut.context.ApplicationContext applicationContext)
-
-
Method Details
-
getBody
Description copied from interface:ControlPanelUsed to render the body of the control panel.- Returns:
- the body of the control panel.
-
hasDetails
public boolean hasDetails()Description copied from interface:ControlPanelIndicates whether this control panel has additional details that can be displayed. By default, it is assumed that a control panel has details.- Returns:
- true if the control panel has details, false otherwise
-