KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > event > RefreshEventListener


1 //$Id: RefreshEventListener.java,v 1.3 2005/07/15 03:35:18 oneovthafew Exp $
2
package org.hibernate.event;
3
4 import org.hibernate.HibernateException;
5
6 import java.io.Serializable JavaDoc;
7 import java.util.Map JavaDoc;
8
9 /**
10  * Defines the contract for handling of refresh events generated from a session.
11  *
12  * @author Steve Ebersole
13  */

14 public interface RefreshEventListener extends Serializable JavaDoc {
15
16     /**
17      * Handle the given refresh event.
18      *
19      * @param event The refresh event to be handled.
20      * @throws HibernateException
21      */

22     public void onRefresh(RefreshEvent event) throws HibernateException;
23     
24     public void onRefresh(RefreshEvent event, Map JavaDoc refreshedAlready) throws HibernateException;
25
26 }
27
Popular Tags