1 // $Id: Configurable.java,v 1.1 2004/11/11 20:57:23 steveebersole Exp $ 2 package org.hibernate.exception; 3 4 import org.hibernate.HibernateException; 5 6 import java.util.Properties; 7 8 /** 9 * The Configurable interface defines the contract for SQLExceptionConverter impls that 10 * want to be configured prior to usage given the currently defined Hibernate properties. 11 * 12 * @author Steve Ebersole 13 */ 14 public interface Configurable { 15 // todo: this might really even be moved into the cfg package and used as the basis for all things which are configurable. 16 17 /** 18 * Configure the component, using the given settings and properties. 19 * 20 * @param properties All defined startup properties. 21 * @throws HibernateException Indicates a configuration exception. 22 */ 23 public void configure(Properties properties) throws HibernateException; 24 } 25