001 package org.esupportail.cas.server.handlers.database;
002
003 import org.dom4j.Element;
004 import org.esupportail.cas.server.util.RedundantHandler;
005
006 /**
007 * This abstract class implements a database handler class, inherited by
008 * BindDatabaseHandler and SearchDatabaseHandler.
009 *
010 * @author Pascal Aubry <pascal.aubry at univ-rennes1.fr>
011 */
012 abstract class DatabaseHandler extends RedundantHandler {
013
014 /**
015 * Constructor.
016 *
017 * @param handlerElement the XML element that declares the handler
018 * in the configuration file
019 * @param configDebug debugging mode of the global configuration
020 * @throws Exception Exception
021 */
022 protected DatabaseHandler(
023 final Element handlerElement,
024 final Boolean configDebug) throws Exception {
025 super(handlerElement, configDebug);
026 traceBegin();
027
028 // check that a config element is present
029 checkConfigElement(true);
030
031 traceEnd();
032 }
033
034 }