Index: topia2/src/java/org/codelutin/topia/TopiaContext.java diff -u topia2/src/java/org/codelutin/topia/TopiaContext.java:1.2 topia2/src/java/org/codelutin/topia/TopiaContext.java:1.3 --- topia2/src/java/org/codelutin/topia/TopiaContext.java:1.2 Wed Jan 4 13:21:51 2006 +++ topia2/src/java/org/codelutin/topia/TopiaContext.java Thu Jan 5 04:50:47 2006 @@ -23,9 +23,9 @@ * Created: 3 janv. 2006 21:18:34 * * @author poussin - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ * - * Last update: $Date: 2006/01/04 13:21:51 $ + * Last update: $Date: 2006/01/05 04:50:47 $ * by : $Author: bpoussin $ */ @@ -47,11 +47,27 @@ public void addTopiaEntityListener(TopiaEntityListener l); /** + * Adds a new TopiaEntityListener to the subscribers list. + * @param entityClass la classe de l'entity pour lequel on veut etre notifié + * les events des classes enfants nous parviennent aussi + * @param topiaEntityListener - the TopiaEntityListener to add to the subscribers list. + */ + public void addTopiaEntityListener(Class entityClass, TopiaEntityListener l); + + /** * Removes a TopiaEntityListener from the subscribers list. * @param topiaEntityListener - the TopiaEntityListener to remove from the subscribers. */ public void removeTopiaEntityListener(TopiaEntityListener l); + /** + * Removes a TopiaEntityListener from the subscribers list. + * @param entityClass la classe de l'entity pour lequel on ne veut plus + * etre notifié. Si on n'etait pas listener de cette classe rien ne se passe + * @param topiaEntityListener - the TopiaEntityListener to remove from the subscribers. + */ + public void removeTopiaEntityListener(Class entityClass, TopiaEntityListener l); + public TopiaContext beginTransaction() throws TopiaNotFoundException; /**