[Buix-commits] r501 - in trunk/lutinvcs/core/src/main/java/org/codelutin/vcs: . provider
Author: tchemit Date: 2008-04-13 15:50:40 +0000 (Sun, 13 Apr 2008) New Revision: 501 Added: trunk/lutinvcs/core/src/main/java/org/codelutin/vcs/VCSProvider.java Removed: trunk/lutinvcs/core/src/main/java/org/codelutin/vcs/provider/VCSProvider.java Log: package provider Copied: trunk/lutinvcs/core/src/main/java/org/codelutin/vcs/VCSProvider.java (from rev 500, trunk/lutinvcs/core/src/main/java/org/codelutin/vcs/provider/VCSProvider.java) =================================================================== --- trunk/lutinvcs/core/src/main/java/org/codelutin/vcs/VCSProvider.java (rev 0) +++ trunk/lutinvcs/core/src/main/java/org/codelutin/vcs/VCSProvider.java 2008-04-13 15:50:40 UTC (rev 501) @@ -0,0 +1,53 @@ +/** + * ##% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program is + * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * ##% + */ +package org.codelutin.vcs; + +import org.codelutin.vcs.type.VCSConnexionMode; +import org.codelutin.vcs.VCSConnexion; +import org.codelutin.vcs.VCSHandler; +import org.codelutin.vcs.VCSConnexionConfig; + +/** + * The contract to be realized to provide vcs communication. + * <p/> + * Acts as a handler and connexion factory and manage a single handler instance + * + * @author chemit + * @see org.codelutin.vcs.VCSHandler + * @see org.codelutin.vcs.VCSConnexion + */ +public interface VCSProvider<C extends VCSConnexion, H extends VCSHandler<C>> { + + /** @return the identifier of the vcs provider (eg SVN, CVS, MOCK) */ + String getName(); + + /** @return the class of implementation of handler to use for this provider */ + Class<H> getHandlerImpl(); + + /** @return the imclass of implementation of connexion to use for this provider */ + Class<C> getConnexionImpl(); + + /** + * Instanciate an new connexion for a given config, and init it. + * <p/> + * Note : <b>After this method connexion is init, but not opened.</b> + * + * @param mode the mode required + * @param config the config to be used + * @return the new connexion initialized <b>but not opened</b>. + */ + C newConnection(VCSConnexionMode mode, VCSConnexionConfig config); + +} Deleted: trunk/lutinvcs/core/src/main/java/org/codelutin/vcs/provider/VCSProvider.java =================================================================== --- trunk/lutinvcs/core/src/main/java/org/codelutin/vcs/provider/VCSProvider.java 2008-04-13 15:48:43 UTC (rev 500) +++ trunk/lutinvcs/core/src/main/java/org/codelutin/vcs/provider/VCSProvider.java 2008-04-13 15:50:40 UTC (rev 501) @@ -1,53 +0,0 @@ -/** - * ##% Copyright (C) 2008 Code Lutin, Tony Chemit - * This program is free software; you - * can redistribute it and/or modify it under the terms of the GNU General - * Public License as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. This program is - * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A - * PARTICULAR PURPOSE. See the GNU General Public License for more details. You - * should have received a copy of the GNU General Public License along with this - * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - * - Suite 330, Boston, MA 02111-1307, USA. - * ##% - */ -package org.codelutin.vcs.provider; - -import org.codelutin.vcs.type.VCSConnexionMode; -import org.codelutin.vcs.VCSConnexion; -import org.codelutin.vcs.VCSHandler; -import org.codelutin.vcs.VCSConnexionConfig; - -/** - * The contract to be realized to provide vcs communication. - * <p/> - * Acts as a handler and connexion factory and manage a single handler instance - * - * @author chemit - * @see org.codelutin.vcs.VCSHandler - * @see org.codelutin.vcs.VCSConnexion - */ -public interface VCSProvider<C extends VCSConnexion, H extends VCSHandler<C>> { - - /** @return the identifier of the vcs provider (eg SVN, CVS, MOCK) */ - String getName(); - - /** @return the class of implementation of handler to use for this provider */ - Class<H> getHandlerImpl(); - - /** @return the imclass of implementation of connexion to use for this provider */ - Class<C> getConnexionImpl(); - - /** - * Instanciate an new connexion for a given config, and init it. - * <p/> - * Note : <b>After this method connexion is init, but not opened.</b> - * - * @param mode the mode required - * @param config the config to be used - * @return the new connexion initialized <b>but not opened</b>. - */ - C newConnection(VCSConnexionMode mode, VCSConnexionConfig config); - -}
participants (1)
-
tchemit@users.labs.libre-entreprise.org