Index: topia/src/java/org/codelutin/topia/TopiaContext.java diff -u topia/src/java/org/codelutin/topia/TopiaContext.java:1.27 topia/src/java/org/codelutin/topia/TopiaContext.java:1.28 --- topia/src/java/org/codelutin/topia/TopiaContext.java:1.27 Thu Jul 15 13:13:12 2004 +++ topia/src/java/org/codelutin/topia/TopiaContext.java Thu Jul 15 14:37:59 2004 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.27 $ + * @version $Revision: 1.28 $ * - * Mise a jour: $Date: 2004/07/15 13:13:12 $ + * Mise a jour: $Date: 2004/07/15 14:37:59 $ * par : $Author: bpoussin $ */ @@ -113,9 +113,22 @@ * @see #getService(Class, boolean) */ public TopiaEntityOperation getEntityOperation(Class entityClass) throws TopiaException { + return getEntityOperation(entityClass, false); + } + + /** + * Retourne l'objet implantant les operations de l'entity demandé. Par defaut + * cette classe se nome de la meme façon que + * l'entity avec Operation en plus + * @param entityClass la class de l'entité dont on souhaite les operations + * @param local si vrai alors donne l'implantation local du service au + * lieu du Dist + * @see #getService(Class, boolean) + */ + public TopiaEntityOperation getEntityOperation(Class entityClass, boolean local) throws TopiaException { String className = entityClass.getName() + "Operation"; Class interfacez = Util.getClazz(className); - return (TopiaEntityOperation)getService(interfacez, false); + return (TopiaEntityOperation)getService(interfacez, local); } /**