public class RouteDefinitionRouteLocator extends Object implements RouteLocator, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ApplicationEventPublisherAware
RouteLocator that loads routes from a RouteDefinitionLocator| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
RouteDefinitionRouteLocator(RouteDefinitionLocator routeDefinitionLocator,
List<RoutePredicateFactory> predicates,
List<GatewayFilterFactory> gatewayFilterFactories,
GatewayProperties gatewayProperties) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<Route> |
getRoutes() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public RouteDefinitionRouteLocator(RouteDefinitionLocator routeDefinitionLocator, List<RoutePredicateFactory> predicates, List<GatewayFilterFactory> gatewayFilterFactories, GatewayProperties gatewayProperties)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwarepublic reactor.core.publisher.Flux<Route> getRoutes()
getRoutes in interface RouteLocatorCopyright © 2018 Pivotal Software, Inc.. All rights reserved.