Btw, wondering if Jenkins does/could/should support @PostConstruct & @PreDestroy annotations. Might be a good way to handle disconnections and so on when components are teared down while shutting down.
2015-11-04 9:38 GMT+01:00 Baptiste Mathus <[email protected]>: > Hi Joachim, > > In general, for that kind of question, the way to go is to search > https://wiki.jenkins-ci.org/display/JENKINS/Extension+points for > something matching your needs. > Quickly greping myself, though I never did that very thing, maybe > implementing either hudson.lifecycle.Lifecycle > or hudson.model.RestartListener may be of interest I guess. > > My 2 cents > > 2015-11-04 9:22 GMT+01:00 Joachim Nilsson <[email protected]>: > >> Hi >> >> How do I detect Jenkins shut-down in my plug-in so I can close down >> connections and thread pools in a nice way? >> >> Regards, >> Joachim >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-dev/32bb6310-6e0b-4d0c-9ddb-9e40c021c642%40googlegroups.com >> <https://groups.google.com/d/msgid/jenkinsci-dev/32bb6310-6e0b-4d0c-9ddb-9e40c021c642%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Baptiste <Batmat> MATHUS - http://batmat.net > Sauvez un arbre, > Mangez un castor ! > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS79_um-TRKVZ7_TiCZEnKT1__iGCoqsDb4E1PO3%2BFroaw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
