I've written a plugin that adds new web pages to the build server. The plugin uses the UrlMapping object in its constructor to map URLs to its controller like so:
this.webResourcesManager = webResourcesManager;
urlMapping.addHandler("/" + PLUGIN_NAME + "*", this);
webResourcesManager.addPluginResources(PLUGIN_NAME, PLUGIN_NAME + ".jar");
However, TeamCity's url mappings are are all specified in the server's spring config file. It seems wrong to hard-code the URL mapping into the plugin. Is there a standard way of configuring the URL mapping for a plugin?