bloritsch 2002/07/08 12:45:49 Modified: src/proposal/persistable Persistable.java Log: update persistable Revision Changes Path 1.4 +37 -2 jakarta-avalon/src/proposal/persistable/Persistable.java Index: Persistable.java =================================================================== RCS file: /home/cvs/jakarta-avalon/src/proposal/persistable/Persistable.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- Persistable.java 25 Jun 2002 13:30:37 -0000 1.3 +++ Persistable.java 8 Jul 2002 19:45:49 -0000 1.4 @@ -48,7 +48,12 @@ Software Foundation, please see <http://www.apache.org/>. */ -package org.apache.avalon.framework.configuration; +package org.apache.avalon.framework.persistab; + +import org.apache.avalon.framework.configuration.Configuration; + +import java.io.InputStream; +import java.io.OutputStream; /** * <code>Persistable</code> is a interface encapsulating the ability for a @@ -77,7 +82,37 @@ * dynamically. "Self-healing" configuration allows you to handle a * deprecated configuration schema and persist with the preferred format. * + * <p> + * NOTE: this is called before Disposable.dispose() and directly before + * Persistable.writeData() + * </p> + * * @return Configuration object */ - Configuration persist(); + Configuration writeConfiguration(); + + /** + * Alow a component to load it's working set of data. The container + * provides an <code>InputStream</code> to load the information from. + * The <code>Persistable</code> component must know how to handle an + * empty stream, initializing the working set of info if the component + * has never been used before. + * + * <p> + * NOTE: this is called prior to Initializable.initialize(), but after + * everything else. + * </p> + */ + void readData(InputStream in); + + /** + * Alow a component to save it's working set of data. The container + * provides an <code>OutputStream</code> to save the information to. + * + * <p> + * NOTE: this is called before Disposable.dispose() and right after + * Persistable.writeConfiguration(); + * </p> + */ + void writeData(OutputStream out); }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>