@header@
| Blog Listeners |
|
Blog listeners are a type of Pebble plugin that allow you to write code that is called whenever your blog is started and stopped. Example uses include:
To write your own listener, you need to write a Java class that implements the pebble.event.blog.BlogListener interface
as shown below. To gain access to the associated blog, simply use the package pebble.event;
/**
* Implemented by classes wanting to be notified of blog events.
*
* @author Simon Brown
*/
public interface BlogListener {
/**
* Called when a blog has been started.
*
* @param event a BlogEvent instance
*/
public void blogStarted(BlogEvent event);
/**
* Called when a blog has been stopped.
*
* @param event a BlogEvent instance
*/
public void blogStopped(BlogEvent event);
}
|