Thursday, 2 September 2004

blojsom event notification and listener API

« Ahoy mateys ... the blojsom piratizer plugin | Main | The Richard M. Spackmann Campaign Blog - powered by blojsom »
One of the new APIs that will be available in blojsom 2.18 is the event notification and listener API. It's probably similar to what MovableType has in terms of the application-level callbacks. We've got our own take and twist on things.

The blojsom event notification and listener API allows developers to write blojsom components (dispatchers, fetchers, listeners, and plugins) that respond to events from other blojsom components in a well-defined way. For example, based on an event indicating that a blog entry was added or updated, a listener or plugin could be written to respond to that event and "ping" a weblog update notification service like weblogs.com or blo.gs. Another example might be a listener or plugin which e-mails a list of individuals when a blog entry has been added to a blog.

The API is easy to work with and is as simple as implementing the BlojsomListener interface. Components that add themselves to the event broadcaster can also pass a filter so that the component only receives events it is interested in processing.

Other uses for this functionality might be to for a fetcher to update its cache when a new entry is available, a dispatcher that performs static rendering based on entry-related events, a plugin marking a comment as "pending" so that it can later be moderated. The list is endless. The hooks are now there for you to be able to write "active" components.
Posted by david at 9:31 AM in blojsom ... all blojsom

 

[Trackback URL for this entry]

Your comment:

(not displayed)
 
 
 

Live Comment Preview:

 
« First  « Prev   1 2 3 4 5   Next »  Last »
« September »
SunMonTueWedThuFriSat
   1234
567891011
12131415161718
19202122232425
2627282930