# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Fields
- Deprecated Methods

Deprecated Interfaces
Interface and Description
org.springframework.messaging.rsocket.ClientRSocketFactoryConfigurer as of 5.2.6 following the deprecation of `RSocketFactory.ClientRSocketFactory` in RSocket 1.0 RC7. Please, use `RSocketConnectorConfigurer`.

Deprecated Classes
Class and Description
org.springframework.messaging.support.ChannelInterceptorAdapter as of 5.0.7 `ChannelInterceptor` has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this no-op adapter
org.springframework.messaging.handler.annotation.support.PayloadArgumentResolver as of 5.2, in favor of `PayloadMethodArgumentResolver`

Deprecated Fields
Field and Description
org.springframework.messaging.rsocket.annotation.support.RSocketFrameTypeMessageCondition.REQUEST_CONDITION as of 5.2.2 because matching to all interaction types is too flexible. Please use one of the other constants in this class that match to specific frames.

Deprecated Methods
Method and Description
org.springframework.messaging.rsocket.annotation.support.RSocketMessageHandler.clientResponder(RSocketStrategies, Object...) as of 5.2.6 following the deprecation of `RSocketFactory.ClientRSocketFactory` in RSocket 1.0 RC7.
org.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration.createLocalUserRegistry() as of 5.1 in favor of `AbstractMessageBrokerConfiguration.createLocalUserRegistry(Integer)`
org.springframework.messaging.rsocket.RSocketRequester.Builder.rsocketFactory(ClientRSocketFactoryConfigurer) as of 5.2.6 following the deprecation of `RSocketFactory.ClientRSocketFactory` in RSocket 1.0 RC7. Please, use `RSocketRequester.Builder.rsocketConnector(RSocketConnectorConfigurer)`.
org.springframework.messaging.simp.config.ChannelRegistration.setInterceptors(ChannelInterceptor...) as of 4.3.12, in favor of `ChannelRegistration.interceptors(ChannelInterceptor...)`
org.springframework.messaging.simp.user.DefaultUserDestinationResolver.setPathMatcher(PathMatcher) as of 4.3.14 this property is no longer used and is replaced by `DefaultUserDestinationResolver.setRemoveLeadingSlash(boolean)` that indicates more explicitly whether to keep the leading slash which may or may not be the case regardless of how the `PathMatcher` is configured.