I've generated a Jersey server stub with swagger-codegen and now I'm 
wondering if there's a good way to inject dependencies into the service 
implementation without modifying generated code and making it hard to 
regenerate in the future.  I know that I can modify the 
FooApiServiceFactory and FooApiServiceImpl freely but the generated api 
resource includes:
private final FooApiService delegate = FooApiServiceFactory.
getDeploymentsApi();

I'm not sure that there's any way I can use any DI library without having 
to make at least some change to the generated api resource that would get 
overwritten by a regeneration.  Has anyone else wanted to do this and found 
a good way?

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to