Clean up the JSON rendering of ConsumerProperties and ProducerProperties (for actuator endpoints).
This commit is contained in:
@@ -16,11 +16,16 @@
|
||||
|
||||
package org.springframework.cloud.stream.binder;
|
||||
|
||||
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_DEFAULT;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
|
||||
/**
|
||||
* Common consumer properties.
|
||||
*
|
||||
* @author Marius Bogoevici
|
||||
*/
|
||||
@JsonInclude(NON_DEFAULT)
|
||||
public class ConsumerProperties {
|
||||
|
||||
private int concurrency = 1;
|
||||
|
||||
@@ -16,15 +16,20 @@
|
||||
|
||||
package org.springframework.cloud.stream.binder;
|
||||
|
||||
import org.springframework.expression.Expression;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
|
||||
import org.springframework.expression.Expression;
|
||||
|
||||
/**
|
||||
* Common producer properties.
|
||||
*
|
||||
* @author Marius Bogoevici
|
||||
* @author Ilayaperumal Gopinathan
|
||||
*/
|
||||
@JsonInclude(Include.NON_DEFAULT)
|
||||
public class ProducerProperties {
|
||||
|
||||
@JsonSerialize(using = ExpressionSerializer.class)
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.springframework.cloud.stream.binder.Binding;
|
||||
public final class DynamicDestinationsBindable extends BindableAdapter {
|
||||
|
||||
/**
|
||||
* Map containing channel names and their bindings.
|
||||
* Map containing dynamic channel names and their bindings.
|
||||
*/
|
||||
private Map<String, Binding> outputBindings = new HashMap<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user