Move to Hoxton.SR4 and Thrift Client Beans Support
Thrift clients can also be used as regular beans
(which can be configured through app properties)
class Service {
@Autowired
private TGreetingService.Client client;
}
class Service {
private final TGreetingService.Client client;
@Autowired
public Service(TGreetingService.Client client) {
this.client = client;
}
}