KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ca > directory > jxplorer > DataListener


1 package com.ca.directory.jxplorer;
2
3 import com.ca.commons.naming.*;
4
5 /**
6  * This interface handles
7  *
8  * There are two main ways to retrieve data from a DataQuery
9  * in a thread friendly manner. The first is to poll the
10  * 'ready()' method until it returns true. The second method
11  * is to register a data listener that will be notified when
12  * the result is complete.
13  */

14
15 //XXX is this correct, or do we want a 'DataEvent' that wraps the
16
// DataQuery in some way, maybe providing a 'source'?
17

18 public interface DataListener
19 {
20     public void dataReady(DataQuery result);
21 }
Popular Tags