Hello everyone,

With time and pain I did manage to create a bunch of plugins that do 
exactly what I wanted. But the thing is I've not always understood what I 
was doing. And I would like to know more about it.

My plugins all add a "post-build action" to perform some computation, and 
then display results on the project and build pages. The @Extension 
annotation is put on the inner Descriptor of the Publisher class.

But in one of my plugin, I've got 2 @Extension annotations. 

In this plugin, I've got to use some list boxes to configure a job. First I 
tried to save all the configuration data in the inner Descriptor of my 
Publisher class, but it didn't work. The thing is these data were no more 
just simple Strings. Maybe there is a solution, I don't know. But anyway, 
looking at other plugins with list boxes, I found out a way to implement 
this in my plugin. I extended the GlobalConfiguration class and put a 
@Extension annotation on it, and then wrote methods etc..

But I still have the @Extension in my Publisher class. How does it work 
altogether ? I thought that the @Extension was kind of the door for Jenkins 
to enter the plugin.

I'm not sure if I'm clear, but thanks in advance.

Bruno

-- 
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/70b02b3b-5c87-4f92-97bc-219c183fcc93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to