PostConstruct or OnDestroy

Hi,

I have been developing a custom sonar plugin for our own product. I have noticed that the plugins use picocontainer as a container manager. Is there a way to use some of the features such as PostConstruct or OnDestroy inside a sonar plugin? It would be really helpfull!

Terry van der Griend

Hi,

Maybe you could use pico lifecycle. Simply implement the org.sonar.api.Startable interface, and override methods start and/or stop.

++

2 Likes

Hi Julien,

Awesome this is what i am looking for, many thanks!