Merge 2602dc978f
into 061390d76b
This commit is contained in:
commit
570eedc2cd
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
type: add
|
||||
issue: 6496
|
||||
title: "Added a configuration option to ChannelSettings that allows message brokers to disable channel name prefix
|
||||
for chosen topics."
|
|
@ -29,6 +29,8 @@ public abstract class BaseChannelSettings implements IChannelSettings {
|
|||
// init true to match previous behaviour
|
||||
private boolean myUseJacksonMessageConverter = true;
|
||||
|
||||
private boolean myUsePrefixChannelName = true;
|
||||
|
||||
/**
|
||||
* Default true. Used by IChannelNamer to decide how to qualify the channel name.
|
||||
*/
|
||||
|
@ -60,4 +62,13 @@ public abstract class BaseChannelSettings implements IChannelSettings {
|
|||
public void setUseJacksonMessageConverter(boolean theUseJacksonMessageConverter) {
|
||||
myUseJacksonMessageConverter = theUseJacksonMessageConverter;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsePrefixChannelName() {
|
||||
return myUsePrefixChannelName;
|
||||
}
|
||||
|
||||
public void setUsePrefixChannelName(boolean theUsePrefixChannelName) {
|
||||
myUsePrefixChannelName = theUsePrefixChannelName;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,4 +23,6 @@ public interface IChannelSettings {
|
|||
boolean isQualifyChannelName();
|
||||
|
||||
boolean isUseJacksonMessageConverter();
|
||||
|
||||
boolean isUsePrefixChannelName();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue