View Javadoc
1   package org.nhindirect.gateway.springconfig;
2   
3   import org.nhind.config.rest.AddressService;
4   import org.nhindirect.xd.routing.RoutingResolver;
5   import org.nhindirect.xd.routing.impl.RoutingResolverImpl;
6   import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
7   import org.springframework.context.annotation.Bean;
8   import org.springframework.context.annotation.Configuration;
9   
10  @Configuration
11  public class RouteResolverConfig
12  {
13  	@Bean
14  	@ConditionalOnMissingBean
15  	public RoutingResolver routingResolver(AddressService addressService) 
16  	{
17  		return new RoutingResolverImpl(addressService);
18  	}
19  }