org.springframework.boot.actuate.endpoint.jmx

Interface JmxOperationResponseMapper

  • All Known Implementing Classes:
    JacksonJmxOperationResponseMapper


    public interface JmxOperationResponseMapper
    Maps an operation's response to a JMX-friendly form.
    Since:
    2.0.0
    Author:
    Stephane Nicoll
    • Method Detail

      • mapResponseType

        Class<?> mapResponseType(Class<?> responseType)
        Map the response type to its JMX compliant counterpart.
        Parameters:
        responseType - the operation's response type
        Returns:
        the JMX compliant type
      • mapResponse

        Object mapResponse(Object response)
        Map the operation's response so that it can be consumed by a JMX compliant client.
        Parameters:
        response - the operation's response
        Returns:
        the response, in a JMX compliant format