Package org.openwms.wms.shipping.app
Class ShippingFeignConfiguration
java.lang.Object
org.openwms.wms.shipping.app.ShippingFeignConfiguration
@Profile("DISTRIBUTED")
@Configuration
@AutoConfigureOrder(0)
@EnableFeignClients(basePackageClasses={AllocatorApi.class,TransportUnitAllocatorApi.class,PickingApi.class})
public class ShippingFeignConfiguration
extends Object
A ShippingFeignConfiguration activates client stubs using Feign to connect to other services. This is deactivated when the service is
packaged and deployed as part of a whole application.
- Author:
- Heiko Scherrer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfeign.auth.BasicAuthRequestInterceptor
(package private) TransportUnitAllocator
commonTransportUnitAllocator
(TransportUnitAllocatorApi transportUnitAllocatorApi) (package private) TransportUnitAllocator
wmsTransportUnitAllocator
(WmsTransportUnitAllocatorApi transportUnitAllocatorApi)
-
Constructor Details
-
ShippingFeignConfiguration
public ShippingFeignConfiguration()
-
-
Method Details
-
basicAuthRequestInterceptor
@Bean public feign.auth.BasicAuthRequestInterceptor basicAuthRequestInterceptor() -
commonTransportUnitAllocator
@Profile("COMMON_ALLOCATION|| !WMS_ALLOCATION") @Bean TransportUnitAllocator commonTransportUnitAllocator(TransportUnitAllocatorApi transportUnitAllocatorApi) -
wmsTransportUnitAllocator
@Profile("WMS_ALLOCATION") @Bean TransportUnitAllocator wmsTransportUnitAllocator(WmsTransportUnitAllocatorApi transportUnitAllocatorApi)
-