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 a8fbac8472
commit 8848e6ab9f
1 changed files with 2 additions and 2 deletions

View File

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