@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.

  • pebble.event.trackback.EmailNotificationListener - sends a notification e-mail when a new TrackBack is added.

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 getTrackBack() method on the pebble.event.trackback.TrackBackEvent object that is passed to the callback methods.

  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);

  }

@footer@