swagger-api / swagger-inflector

Apache License 2.0
160 stars 85 forks source link

Feature request: Way to do initialization on startup #154

Open davidsantiago opened 8 years ago

davidsantiago commented 8 years ago

Usually when you write a servlet you can do initialization in your init() method, to get needed libraries and data structures and what not set up for when the requests start coming in. There does not appear to be a way to one-time initialization on servlet initialization in Swagger-inflector.

davidsantiago commented 8 years ago

Since I filed this, I've learned about ServletContextListener, which I had never run across, but is a fine solution to do what I wanted. As far as my need, this issue is resolved. To the extent that this might be worth thinking about as a feature many other frameworks have, or just for documentation purposes, I'll leave it open for your consideration.