Senior |
|
Joined: Wed Aug 27, 2003 4:08 am Posts: 178 Location: Wiesbaden, Germany
|
1. all the same paameters as various configure(whatever) methods
2. being able to use Configuration as pico component without writing
a wrapper myself.
I would be glad to contribute those 15 lines of code to hibernate team,
and not to put them intopicocontainer code.
This way it's better in synch.
What I would like to avoid to commit to nanocontainer:
---%<-------------------
/*****************************************************************************
* Copyright (c) PicoContainer Organization. All rights reserved. *
* ------------------------------------------------------------------------- *
* The software in this package is published under the terms of the BSD *
* style license a copy of which has been included with this distribution in *
* the license.html file. *
* *
* Idea by Rachel Davies, Original code by Aslak Hellesoy and Paul Hammant *
*****************************************************************************/
package org.nanocontainer.hibernate;
import net.sf.hibernate.cfg.Configuration;
import net.sf.hibernate.HibernateException;
import java.net.URL;
import java.io.File;
/**
* constructable hibernate configuration. not a rocket science, just a wrapper aroung
* various configure() methods... see respective hibernate javadocs.
* @author Konstantin Pribluda
* @version $Revision:$
*/
public class ConstructableConfiguration extends Configuration {
public ConstructableConfiguration() throws HibernateException {
configure();
}
public ConstructableConfiguration(URL url) throws HibernateException {
configure(url);
}
public ConstructableConfiguration(String resource) throws HibernateException {
configure(resource);
}
public ConstructableConfiguration(File configFile) throws HibernateException {
configure(configFile);
}
}
---%<-----------------
_________________ Got new hibernate xdoclet plugin? http://www.sourceforge.net/projects/xdoclet-plugins/
... Momentan auf der Suche nach neuen Projekt ode Festanstellung....
|
|