> Am 01.02.2015 um 18:32 schrieb Baptiste Mathus <[email protected]>:
> 
> Hi all,
> Currently adding an extension point to my plugin, I was wondering if I should 
> try and cache the results of getExtensionList() at some point (I read one 
> good place may be in postInitialize()).
> 
> In that case though, if some plugin gets installed without restarting the 
> server, I guess I won't have the potential new registered extensions. That 
> bothers me a bit.
> 
> Is there some recommended pattern/way to be a good citizen in this area (I.e. 
> handling extensions from the plugins in general)?
> 
> One solution here would be to never cache the results and always call 
> getExtensionList(). Is this something reasonable?
> 
Yes, I think this is reasonable to always call getExtensionList(). Isn’t that 
list already cached by Jenkins? So it would not hurt to call that method 
multiple times...

> (In my case, for *every* build of the Jenkins instance...). Seems a bit 
> wasteful at first sight.
> 
> Or is there some maybe an extension point to implement to be notified of new 
> extension registrations? :)
> 
> Thanks for your advice.
> 
> Cheers
> 
> -- Baptiste
> 
> 
> --
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS4%3D5a%3Dwr%3DU-Ube1f9FDGcN1NjFuki-Jp6QSiKLax58S2A%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS4%3D5a%3Dwr%3DU-Ube1f9FDGcN1NjFuki-Jp6QSiKLax58S2A%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/86A6D8D7-6666-4F1F-A6B4-0FCCAA51F7F1%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to