01: // $Id: Configurable.java 4746 2004-11-11 20:57:28Z steveebersole $
02: package org.hibernate.exception;
03:
04: import org.hibernate.HibernateException;
05:
06: import java.util.Properties;
07:
08: /**
09: * 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)
24: throws HibernateException;
25: }
|