GH-1601 Polishing - avoiding breaking change

This commit is contained in:
Oleg Zhurakousky
2019-02-05 06:27:07 +01:00
parent 635cd40dbb
commit d92db35bf4
2 changed files with 7 additions and 2 deletions

View File

@@ -48,8 +48,6 @@ public abstract class AbstractExtendedBindingProperties<C, P, T extends BinderSp
private ConfigurableApplicationContext applicationContext = new GenericApplicationContext();
public abstract Map<String, T> getBindings();
public void setBindings(Map<String, T> bindings) {
this.bindings.putAll(bindings);
}

View File

@@ -16,6 +16,9 @@
package org.springframework.cloud.stream.binder;
import java.util.Collections;
import java.util.Map;
/**
* Properties that extend the common binding properties for a particular binder
* implementation.
@@ -32,6 +35,10 @@ public interface ExtendedBindingProperties<C, P> {
P getExtendedProducerProperties(String channelName);
default Map<String, ? extends Object> getBindings() {
return Collections.emptyMap();
}
/**
* Extended binding properties can define a default prefix to place all the extended
* common producer and consumer properties. For example, if the binder type is foo it