001 /*****************************************************************************
002 * Copyright (c) PicoContainer Organization. All rights reserved. *
003 * ------------------------------------------------------------------------- *
004 * The software in this package is published under the terms of the BSD *
005 * style license a copy of which has been included with this distribution in *
006 * the license.html file. *
007 *****************************************************************************/
008
009 package org.picocontainer.persistence.hibernate;
010
011 import java.io.File;
012 import java.net.URL;
013
014 import org.hibernate.cfg.Configuration;
015 import org.w3c.dom.Document;
016
017 /**
018 * Constructable Hibernate configuration. Just a wrapper around various
019 * configure() methods. See respective {@link org.hibernate.cfg.Configuration Configuration} methods.
020 *
021 * @author Jose Peleteiro
022 * @see org.hibernate.cfg.Configuration
023 */
024 @SuppressWarnings("serial")
025 public class ConstructableConfiguration extends Configuration {
026
027 public ConstructableConfiguration() {
028 this.configure();
029 }
030
031 public ConstructableConfiguration(URL url) {
032 this.configure(url);
033 }
034
035 public ConstructableConfiguration(String resource) {
036 this.configure(resource);
037 }
038
039 public ConstructableConfiguration(File configFile) {
040 this.configure(configFile);
041 }
042
043 public ConstructableConfiguration(Document document) {
044 this.configure(document);
045 }
046
047 }