PostConstruct or OnDestroy

scanner
java

(Terry van der Griend) #1

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


(Julien Henry) #2

Hi,

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

++


(Terry van der Griend) #3

Hi Julien,

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