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 Detail

      • getRealManageables

        List<Manageable> getRealManageables()
        Any wrapped services that are Manageable. Never return `null`; an empty List should be returned instead.
      • getManagementDomain

        default String getManagementDomain()
        Description copied from interface: Manageable
        Get the domain name to be used in registering the management bean. May be null to indicate Hibernate's default domain (org.hibernate.core) should be used.
        Specified by:
        getManagementDomain in interface Manageable
        Returns:
        The management domain.
      • getManagementServiceType

        default String getManagementServiceType()
        Description copied from interface: Manageable
        Allows the service to specify a special 'serviceType' portion of the object name. null indicates we should use the default scheme, which is to use the name of the service impl class for this purpose.
        Specified by:
        getManagementServiceType in interface Manageable
        Returns:
        The custom 'serviceType' name.
      • getManagementBean

        default Object getManagementBean()
        Description copied from interface: Manageable
        The the management bean (MBean) for this service.
        Specified by:
        getManagementBean in interface Manageable
        Returns:
        The management bean.