Hi,

maybe you have a clean solution for me:
1. Jenkins starts and initializes the Plugins.
2. I have an extension-point in my Plugin and the Constructor needs a list of the users.
3. I can access the users only if Jenkins has been started.

Now i have a problem. Step 2 uses the Code
  Jenkins.getInstance()
But because Jenkins has not yet been started fully, the Singleton creates a new instance and loads the Plugins.

It is a recursion i built that programatically never ends.

I see only one way-out: Deferred loading using threads.
Is there any clean way?

Regards Grim
--
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/0BD07549C33D482F9E5BB68DBB8D902C%40peterwinxp.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to