Re: Where is the Builder class is instantiated in Jenkins (to inject dependencies)

2015-07-22 Thread Vinodhini Vijay
Thank you!! May I know how dependencies are injected in Jenkins? On Wednesday, 22 July 2015 16:38:55 UTC+5:30, Daniel Beck wrote: > > If you configure the job via the Jenkins UI, it'll use > Descriptor#newInstance(StaplerRequest, JSONObject) called from > Descriptor#newInstancesFromHeteroLis

Re: Where is the Builder class is instantiated in Jenkins (to inject dependencies)

2015-07-22 Thread Daniel Beck
If you configure the job via the Jenkins UI, it'll use Descriptor#newInstance(StaplerRequest, JSONObject) called from Descriptor#newInstancesFromHeteroList(…). When loading the job from disk or submitting job config.xml via CLI/POST, the objects get deserialized from XML in XmlFile#read() or X

Re: Where is the Builder class is instantiated in Jenkins (to inject dependencies)

2015-07-22 Thread Vinodhini Vijay
May I know if the above question is valid? or Do some more information is required? Could somebody please help me? Thank you! On Tuesday, 21 July 2015 13:28:58 UTC+5:30, Vinodhini Vijay wrote: > > > > Hello All, > > Where is the Builder class is instantiated in Jenkins? I would like to > in

Where is the Builder class is instantiated in Jenkins (to inject dependencies)

2015-07-21 Thread Vinodhini Vijay
Hello All, Where is the Builder class is instantiated in Jenkins? I would like to inject few dependencies to my custom builder class. I am using Google Guice for this. As per the guice documents, I have to create some thing like the below: Injector injector = Guice.createInjector(new Dep