Search in sources :

Example 1 with PathPatternRouteMatcher

use of org.springframework.web.util.pattern.PathPatternRouteMatcher in project spring-boot by spring-projects.

the class RSocketStrategiesAutoConfiguration method rSocketStrategies.

@Bean
@ConditionalOnMissingBean
public RSocketStrategies rSocketStrategies(ObjectProvider<RSocketStrategiesCustomizer> customizers) {
    RSocketStrategies.Builder builder = RSocketStrategies.builder();
    if (ClassUtils.isPresent(PATHPATTERN_ROUTEMATCHER_CLASS, null)) {
        builder.routeMatcher(new PathPatternRouteMatcher());
    }
    customizers.orderedStream().forEach((customizer) -> customizer.customize(builder));
    return builder.build();
}
Also used : PathPatternRouteMatcher(org.springframework.web.util.pattern.PathPatternRouteMatcher) RSocketStrategies(org.springframework.messaging.rsocket.RSocketStrategies) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnBean(org.springframework.boot.autoconfigure.condition.ConditionalOnBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

ConditionalOnBean (org.springframework.boot.autoconfigure.condition.ConditionalOnBean)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1 RSocketStrategies (org.springframework.messaging.rsocket.RSocketStrategies)1 PathPatternRouteMatcher (org.springframework.web.util.pattern.PathPatternRouteMatcher)1