This page last changed on Sep 29, 2008 by tom@atlassian.com.

Module Descriptor

A Servlet plugin module descriptor looks like this:

<servlet name="My Servlet" key="myServlet" class="com.yoydyne.MyServlet"  adminLevel="system">
        <description>Does things with stuff</description>
        <url-pattern>/my-servlet/*</url-pattern>
        <init-param>
            <param-name>foo</param-name>
            <param-value>abc</param-value>
        </init-param>
        ...
</servlet>

This makes your servlet available at the URL http://<your server>/<your context>/plugins/servlet/my-servlet.

The servlet instance is auto-wired by Spring, so it can have Spring beans injected from the Fisheye/Crucible context.

The adminLevel="system" attribute is optional – if supplied, accesing the plugin requires that the user is authenticated as an administrator.

Document generated by Confluence on Nov 11, 2009 21:21