Custom controllers, resource paths and PluginDescriptor

In the Obtaining paths to JSP files section of Web UI Extensions, it reads:

However to construct paths to your JSP or images in Java it is recommended to use jetbrains.buildServer.web.openapi.PluginDescriptor


But I can't find a bean that implements that interface. Anyone know what the bean's name is?

Thanks

Ben

[EDIT] What about WebUtil, is that useful?

Message was edited by: Ben

1 comment
Comment actions Permalink

WebUtil is not plugin aware, it contains general methods only.

In your case you should ask for PluginDescriptor in your bean constructor, and it will be provided to your bean automatically (Spring autowiring feature).

0

Please sign in to leave a comment.