Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Way to do initialization on startup #154

Open
davidsantiago opened this issue Sep 21, 2016 · 1 comment
Open

Feature request: Way to do initialization on startup #154

davidsantiago opened this issue Sep 21, 2016 · 1 comment

Comments

@davidsantiago
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant