incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Janne Jalkanen (JIRA)" <>
Subject [jira] Commented: (JSPWIKI-423) Plugins should use annotations instead of jspwiki_module.xml
Date Tue, 11 Nov 2008 06:18:44 GMT


Janne Jalkanen commented on JSPWIKI-423:

Yes, we have something similar now:

* First, scan the default packages of "com.ecyrd.jspwiki" and "org.apache.jspwiki"
* Then, use the contents of "jspwiki.plugin.searchPath" just like in 2.x, except now we also
search subpackages.
* Last, use jspwiki_module.xml to locate the rest.  There's a new attribute now, so you can
<modules package="com.mycompany.jspwiki"/>

To add "com.mycompany.jspwiki" to the search path.

I agree that ModuleData is not very descriptive.  However, we've already got "WikiModule"
as a superclass to WikiPlugin ;-).  So I don't think those particular alternatives are better.
 Open to suggestions though...

> Plugins should use annotations instead of jspwiki_module.xml
> ------------------------------------------------------------
>                 Key: JSPWIKI-423
>                 URL:
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Plugins
>            Reporter: Janne Jalkanen
>            Assignee: Janne Jalkanen
>             Fix For: 3.0
> Use of annotations makes it much easier to keep a plugin up to date.   Please see org.apache.jspwiki.api.ModuleData

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message