Skip to content

Commit

Permalink
spring-boot-actuator,org.springframework.boot.actuate.endpoint.jmx,MB…
Browse files Browse the repository at this point in the history
…eanInfoFactory,getType#QClass,MoveMethod,OK
osmarleandro committed Nov 29, 2020
1 parent e07d5b2 commit 0022080
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -38,4 +38,8 @@ public interface JmxOperationResponseMapper {
*/
Object mapResponse(Object response);

default String getType(MBeanInfoFactory mBeanInfoFactory, Class<?> outputType) {
return mapResponseType(outputType).getName();
}

}
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ private ModelMBeanOperationInfo getMBeanOperation(JmxOperation operation) {
String name = operation.getName();
String description = operation.getDescription();
MBeanParameterInfo[] signature = getSignature(operation.getParameters());
String type = getType(operation.getOutputType());
String type = responseMapper.getType(this, operation.getOutputType());
int impact = getImpact(operation.getType());
return new ModelMBeanOperationInfo(name, description, signature, type, impact);
}
@@ -92,8 +92,4 @@ private int getImpact(OperationType operationType) {
return MBeanOperationInfo.UNKNOWN;
}

private String getType(Class<?> outputType) {
return this.responseMapper.mapResponseType(outputType).getName();
}

}

0 comments on commit 0022080

Please sign in to comment.