001 package org.esupportail.cas.server.handlers.database;
002
003 import org.dom4j.Element;
004
005 /**
006 * This class implements a bind database handler class. It is used by
007 * GenericHandler.
008 *
009 * This class is not really needed today because inherinting from
010 * DatabaseHandler but has been kept for the homogeneity of the sources.
011 *
012 * @author Pascal Aubry <pascal.aubry at univ-rennes1.fr>
013 */
014 public final class BindDatabaseHandler extends DatabaseHandler {
015
016 /**
017 * Constructor.
018 *
019 * @param handlerElement the XML element that declares the handler
020 * in the configuration file
021 * @param configDebug debugging mode of the global configuration
022 * @throws Exception Exception
023 */
024 public BindDatabaseHandler(
025 final Element handlerElement,
026 final Boolean configDebug) throws Exception {
027 super(handlerElement, configDebug);
028 traceBegin();
029
030 // add the database servers
031 addServers(true/*serverElementNeeded*/, getClass().getPackage().getName() + ".BindDatabaseServer");
032
033 traceEnd();
034 }
035
036 }
037