Replace use of AbstractWebSocketMessageBrokerConfigurer
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -30,11 +30,11 @@ import org.springframework.messaging.simp.config.MessageBrokerRegistry;
|
||||
*
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 4.0.1
|
||||
* @deprecated {@link WebSocketMessageBrokerConfigurer} has default methods (made
|
||||
* possible by a Java 8 baseline) and can be implemented directly without the
|
||||
* need for this abstract class
|
||||
* @deprecated in favor of simply using {@link WebSocketMessageBrokerConfigurer}
|
||||
* which has default methods, made possible by a Java 8 baseline.
|
||||
*/
|
||||
public abstract class AbstractWebSocketMessageBrokerConfigurer implements WebSocketMessageBrokerConfigurer {
|
||||
@Deprecated
|
||||
public abstract class /*AbstractWebSocketMessageBrokerConfigurer*/ implements WebSocketMessageBrokerConfigurer {
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
@@ -37,13 +37,12 @@ import org.springframework.context.annotation.Import;
|
||||
* </pre>
|
||||
*
|
||||
* <p>Customize the imported configuration by implementing the
|
||||
* {@link WebSocketMessageBrokerConfigurer} interface or more likely extend the
|
||||
* convenient base class {@link AbstractWebSocketMessageBrokerConfigurer}:
|
||||
* {@link WebSocketMessageBrokerConfigurer} interface:
|
||||
*
|
||||
* <pre class="code">
|
||||
* @Configuration
|
||||
* @EnableWebSocketMessageBroker
|
||||
* public class MyConfiguration extends AbstractWebSocketMessageBrokerConfigurer {
|
||||
* public class MyConfiguration implements WebSocketMessageBrokerConfigurer {
|
||||
*
|
||||
* @Override
|
||||
* public void registerStompEndpoints(StompEndpointRegistry registry) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
Reference in New Issue
Block a user