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.txt file.                                                     *
007     *****************************************************************************/
008    package org.picocontainer.persistence.hibernate.annotations;
009    
010    import java.io.File;
011    import java.net.URL;
012    
013    import org.hibernate.cfg.AnnotationConfiguration;
014    import org.w3c.dom.Document;
015    
016    /**
017     * This class handles the configuration with Hibernate's Annotation configuration.
018     * See respective {@link org.hibernate.cfg.AnnotationConfiguration AnnotationConfiguration} methods.
019     * 
020     * @author Michael Rimov
021     * @author Jose Peleteiro
022     */
023    @SuppressWarnings("serial")
024    public class ConstructableAnnotationConfiguration extends AnnotationConfiguration {
025    
026        public ConstructableAnnotationConfiguration() {
027            this.configure();
028        }
029    
030        public ConstructableAnnotationConfiguration(URL url) {
031            this.configure(url);
032        }
033    
034        public ConstructableAnnotationConfiguration(String resource) {
035            this.configure(resource);
036        }
037    
038        public ConstructableAnnotationConfiguration(File file) {
039            this.configure(file);
040        }
041    
042        public ConstructableAnnotationConfiguration(Document document) {
043            this.configure(document);
044        }
045    
046    }