@header@
| TrackBack Listeners |
|
TrackBack listeners are a type of Pebble plugin that allow you to write code that is called whenever a TrackBack is added or removed. The following TrackBack listeners are included with the Pebble distribution.
To write your own listener, you need to write a Java class that implements the pebble.event.trackback.TrackBackListener interface
as shown below. To gain access to the associated TrackBack, simply use the package pebble.event;
/**
* Implemented by classes wanting to be notified of TrackBack events.
*
* @author Simon Brown
*/
public interface TrackBackListener {
/**
* Called when a TrackBack has been added.
*
* @param event a TrackBackEvent instance
*/
public void trackBackAdded(TrackBackEvent event);
/**
* Called when a TrackBack has been removed.
*
* @param event a TrackBackEvent instance
*/
public void trackBackRemoved(TrackBackEvent event);
}
|