Class HibernateControlPanel
java.lang.Object
io.micronaut.controlpanel.core.AbstractControlPanel<HibernateBody>
io.micronaut.controlpanel.core.AbstractEachBeanControlPanel<HibernateBody>
io.micronaut.controlpanel.panels.hibernate.HibernateControlPanel
- All Implemented Interfaces:
ConfigurableControlPanel, ControlPanel<HibernateBody>, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, io.micronaut.core.util.Toggleable
@EachBean(io.micronaut.controlpanel.panels.hibernate.HibernateRuntimeService.class)
public class HibernateControlPanel
extends AbstractEachBeanControlPanel<HibernateBody>
Control panel for Hibernate runtime metadata and caches.
- Since:
- 2.0.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface ControlPanel
ControlPanel.Category, ControlPanel.View -
Field Summary
FieldsFields inherited from class AbstractControlPanel
configuration, controlPanelNameFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionHibernateControlPanel(String beanName, io.micronaut.controlpanel.panels.hibernate.HibernateRuntimeService runtimeService, ControlPanelConfiguration configuration) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetBadge()Badge text to be displayed in the header of the card UI element.protected StringReturns the name of the bean this control panel represents.getBody()Used to render the body of the control panel.The category of the control panel.getIcon()Icon CSS class of the card UI element.protected StringReturns the name of the panel category.Methods inherited from class AbstractEachBeanControlPanel
getBodyView, getDetailedView, getName, getTitleMethods inherited from class AbstractControlPanel
getOrder, isEnabledMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ControlPanel
getDetailLinkName, hasDetails
-
Field Details
-
NAME
- See Also:
-
ENABLED_PROPERTY
- See Also:
-
DEFAULT_ICON_CLASS
- See Also:
-
-
Constructor Details
-
HibernateControlPanel
public HibernateControlPanel(@Parameter String beanName, @Parameter io.micronaut.controlpanel.panels.hibernate.HibernateRuntimeService runtimeService, @Named("hibernate") ControlPanelConfiguration configuration) Constructor.- Parameters:
beanName- the session factory bean nameruntimeService- the runtime service for the session factoryconfiguration- the control panel configuration
-
-
Method Details
-
getBeanName
Description copied from class:AbstractEachBeanControlPanelReturns the name of the bean this control panel represents.- Specified by:
getBeanNamein classAbstractEachBeanControlPanel<HibernateBody>- Returns:
- the bean name
-
getPanelName
Description copied from class:AbstractEachBeanControlPanelReturns the name of the panel category.- Specified by:
getPanelNamein classAbstractEachBeanControlPanel<HibernateBody>- Returns:
- the panel name
-
getBody
Description copied from interface:ControlPanelUsed to render the body of the control panel.- Returns:
- the body of the control panel.
-
getBadge
Description copied from interface:ControlPanelBadge text to be displayed in the header of the card UI element.- Returns:
- the badge text of the control panel.
-
getIcon
Description copied from interface:ConfigurableControlPanelIcon CSS class of the card UI element.- Specified by:
getIconin interfaceConfigurableControlPanel- Overrides:
getIconin classAbstractControlPanel<HibernateBody>- Returns:
- the icon class of the control panel.
-
getCategory
Description copied from interface:ControlPanelThe category of the control panel.- Returns:
- the category of the control panel.
-