Fix usage of deprecated functionality in docs

Closes gh-1934
This commit is contained in:
Kyle Carter
2018-08-19 20:27:25 -06:00
committed by Stephane Nicoll
parent 68cf18f4a3
commit abb92b6966

View File

@@ -1769,7 +1769,7 @@ user and associate it with subsequent STOMP messages on the same session:
@Override
public void configureClientInboundChannel(ChannelRegistration registration) {
registration.setInterceptors(new ChannelInterceptorAdapter() {
registration.interceptors(new ChannelInterceptor() {
@Override
public Message<?> preSend(Message<?> message, MessageChannel channel) {
StompHeaderAccessor accessor =
@@ -1975,7 +1975,7 @@ For example to intercept inbound messages from clients:
@Override
public void configureClientInboundChannel(ChannelRegistration registration) {
registration.setInterceptors(new MyChannelInterceptor());
registration.interceptors(new MyChannelInterceptor());
}
}
----