Example usage for org.springframework.boot WebApplicationType REACTIVE

List of usage examples for org.springframework.boot WebApplicationType REACTIVE

Introduction

In this page you can find the example usage for org.springframework.boot WebApplicationType REACTIVE.

Prototype

WebApplicationType REACTIVE

To view the source code for org.springframework.boot WebApplicationType REACTIVE.

Click Source Link

Document

The application should run as a reactive web application and should start an embedded reactive web server.

Usage

From source file:org.springframework.cloud.function.web.function.FunctionEndpointInitializer.java

@Override
public void initialize(GenericApplicationContext context) {
    if (ContextFunctionCatalogInitializer.enabled
            && context.getEnvironment().getProperty(FunctionalSpringApplication.SPRING_WEB_APPLICATION_TYPE,
                    WebApplicationType.class, WebApplicationType.REACTIVE) == WebApplicationType.REACTIVE
            && context.getEnvironment().getProperty("spring.functional.enabled", Boolean.class, false)
            && ClassUtils.isPresent("org.springframework.http.server.reactive.HttpHandler", null)) {
        registerEndpoint(context);//from  ww  w . j  a  v  a2 s .c om
        registerWebFluxAutoConfiguration(context);
    }
}