This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

Add an "Event Handler" API to JSPWiki#

There are 3 basic types of events on a Wiki page:

  • Create A new page has been created.
  • Read Someone entered a page
  • Modify someone edited a page.

The idea is that when one of these happens, a list of "event handlers" get invoked. An event handler is a class that implements a perticular interface (just like AWT event handlers). The engine passes an event object containing all there is to know about the event.

Now, where do these handlers come from? Well, they are listed in a jspwiki.events.properties file. So, a site manager can define her own handlers, put them under WEB-INF/classes, and add them to the list.

Using this, anyone can contribute implementations for email notification, statistics, content verification (e.g. - scan for viruses) etc.

We could also consider other events, like:

  • User Events
    • new user
    • user loged in
    • user loged out
  • Comment events
    • comment added
    • etc.
  • etc.

- YishayMor

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 07-May-2003 20:50 by YishayMor.