Add public access to PathMatcher in WebSocket config

Issue: SPR-12845
master
Rossen Stoyanchev 10 years ago
parent beae336627
commit ae3417133b
  1. 8
      spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractMessageBrokerConfiguration.java

@ -223,6 +223,14 @@ public abstract class AbstractMessageBrokerConfiguration implements ApplicationC
protected void configureMessageBroker(MessageBrokerRegistry registry) { protected void configureMessageBroker(MessageBrokerRegistry registry) {
} }
/**
* Provide access to the configured PatchMatcher for access from other
* configuration classes.
*/
public final PathMatcher getPathMatcher() {
return getBrokerRegistry().getPathMatcher();
}
@Bean @Bean
public SimpAnnotationMethodMessageHandler simpAnnotationMethodMessageHandler() { public SimpAnnotationMethodMessageHandler simpAnnotationMethodMessageHandler() {
SimpAnnotationMethodMessageHandler handler = createAnnotationMethodMessageHandler(); SimpAnnotationMethodMessageHandler handler = createAnnotationMethodMessageHandler();

Loading…
Cancel
Save