01: package com.xoetrope.data;
02:
03: /**
04: * An interface taht is called for points in the lifecycle of the PreparationTask
05: * <p> Copyright (c) Xoetrope Ltd., 2001-2007, This software is licensed under
06: * the GNU Public License (GPL), please see license.txt for more details. If
07: * you make commercial use of this software you must purchase a commercial
08: * license from Xoetrope.</p>
09: */
10: public interface PreparationListener {
11: /**
12: * Is the listener ready to receive the preparred object?
13: * @return true if the listener is ready for input
14: */
15: public boolean isReady();
16:
17: /**
18: * The preparation is complete
19: * @param o the prepared object
20: */
21: public void preparationCompleted(Object o);
22:
23: /**
24: * An error was detected while performng the preparation task
25: * @param msg an error message
26: */
27: public void preparationFailed(String msg);
28: }
|