List of usage examples for org.springframework.core ReactiveAdapterRegistry getSharedInstance
public static ReactiveAdapterRegistry getSharedInstance()
From source file:org.springframework.cloud.function.web.RequestProcessor.java
private ReactiveAdapterRegistry getAdapterRegistry() { return ReactiveAdapterRegistry.getSharedInstance(); }
From source file:org.springframework.messaging.handler.annotation.reactive.PayloadMethodArgumentResolver.java
public PayloadMethodArgumentResolver(List<? extends Decoder<?>> decoders, @Nullable Validator validator, @Nullable ReactiveAdapterRegistry registry, boolean useDefaultResolution) { Assert.isTrue(!CollectionUtils.isEmpty(decoders), "At least one Decoder is required"); this.decoders = Collections.unmodifiableList(new ArrayList<>(decoders)); this.validator = validator; this.adapterRegistry = registry != null ? registry : ReactiveAdapterRegistry.getSharedInstance(); this.useDefaultResolution = useDefaultResolution; }
From source file:org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerAdapter.java
@Override public void afterPropertiesSet() throws Exception { Assert.notNull(this.applicationContext, "ApplicationContext is required"); if (CollectionUtils.isEmpty(this.messageReaders)) { ServerCodecConfigurer codecConfigurer = ServerCodecConfigurer.create(); this.messageReaders = codecConfigurer.getReaders(); }//from ww w . ja va2 s . co m if (this.argumentResolverConfigurer == null) { this.argumentResolverConfigurer = new ArgumentResolverConfigurer(); } if (this.reactiveAdapterRegistry == null) { this.reactiveAdapterRegistry = ReactiveAdapterRegistry.getSharedInstance(); } this.methodResolver = new ControllerMethodResolver(this.argumentResolverConfigurer, this.messageReaders, this.reactiveAdapterRegistry, this.applicationContext); this.modelInitializer = new ModelInitializer(this.methodResolver, this.reactiveAdapterRegistry); }
From source file:org.springframework.web.reactive.result.view.AbstractView.java
public AbstractView() { this(ReactiveAdapterRegistry.getSharedInstance()); }
From source file:org.springframework.web.servlet.mvc.method.annotation.ReactiveTypeHandler.java
public ReactiveTypeHandler() { this(ReactiveAdapterRegistry.getSharedInstance(), new SyncTaskExecutor(), new ContentNegotiationManager()); }