Package org.hibernate.service.spi
Interface OptionallyManageable
-
- All Superinterfaces:
Manageable
public interface OptionallyManageable extends Manageable
Extension to Manageable for things that are optionally Manageable depending on some internal state. E.g. services that wrap other services wanting to delegate manageablity if the wrapped service is Manageable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.ObjectgetManagementBean()The the management bean (MBean) for this service.default java.lang.StringgetManagementDomain()Get the domain name to be used in registering the management bean.default java.lang.StringgetManagementServiceType()Allows the service to specify a special 'serviceType' portion of the object name.java.util.List<Manageable>getRealManageables()Any wrapped services that are Manageable.
-
-
-
Method Detail
-
getRealManageables
java.util.List<Manageable> getRealManageables()
Any wrapped services that are Manageable. Never return `null`; an empty List should be returned instead.
-
getManagementDomain
default java.lang.String getManagementDomain()
Description copied from interface:ManageableGet the domain name to be used in registering the management bean. May benullto indicate Hibernate's default domain (org.hibernate.core) should be used.- Specified by:
getManagementDomainin interfaceManageable- Returns:
- The management domain.
-
getManagementServiceType
default java.lang.String getManagementServiceType()
Description copied from interface:ManageableAllows the service to specify a special 'serviceType' portion of the object name.nullindicates we should use the default scheme, which is to use the name of the service impl class for this purpose.- Specified by:
getManagementServiceTypein interfaceManageable- Returns:
- The custom 'serviceType' name.
-
getManagementBean
default java.lang.Object getManagementBean()
Description copied from interface:ManageableThe the management bean (MBean) for this service.- Specified by:
getManagementBeanin interfaceManageable- Returns:
- The management bean.
-
-