Add public access to PathMatcher in WebSocket config

Issue: SPR-12845
This commit is contained in:
Rossen Stoyanchev
2015-03-26 16:50:33 -04:00
parent beae336627
commit ae3417133b

View File

@@ -223,6 +223,14 @@ public abstract class AbstractMessageBrokerConfiguration implements ApplicationC
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
public SimpAnnotationMethodMessageHandler simpAnnotationMethodMessageHandler() {
SimpAnnotationMethodMessageHandler handler = createAnnotationMethodMessageHandler();