org.hibernate.service.spi.Manageable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
JPMS Module-Info's for a few of the Jakarta Libraries just until they add them in themselves
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.service.spi;
/**
* Optional {@link org.hibernate.service.Service} contract for services which can be managed in JMX
*
* @author Steve Ebersole
*/
public interface Manageable {
/**
* Get the domain name to be used in registering the management bean. May be {@code null} to indicate Hibernate's
* default domain ({@code org.hibernate.core}) should be used.
*
* @return The management domain.
*/
default String getManagementDomain() {
// use Hibernate default domain
return null;
}
/**
* Allows the service to specify a special 'serviceType' portion of the object name. {@code null} indicates
* we should use the default scheme, which is to use the name of the service impl class for this purpose.
*
* @return The custom 'serviceType' name.
*/
default String getManagementServiceType() {
// use Hibernate default domain
return null;
}
/**
* The management bean (MBean) for this service.
*
* @return The management bean.
*/
default Object getManagementBean() {
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy