Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » util » [javadoc | source]
org.hibernate.util
public final class: ConfigHelper [javadoc | source]
java.lang.Object
   org.hibernate.util.ConfigHelper
A simple class to centralize logic needed to locate config files on the system.
Method from org.hibernate.util.ConfigHelper Summary:
findAsResource,   getConfigProperties,   getConfigStream,   getConfigStreamReader,   getResourceAsStream,   getUserResourceAsStream,   locateConfig
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.util.ConfigHelper Detail:
 public static final URL findAsResource(String path) 
    Try to locate a local URL representing the incoming path. This method only attempts to locate this URL as a java system resource.
 public static final Properties getConfigProperties(String path) throws HibernateException 
    Loads a properties instance based on the data at the incoming config location.
 public static final InputStream getConfigStream(String path) throws HibernateException 
 public static final Reader getConfigStreamReader(String path) throws HibernateException 
 public static InputStream getResourceAsStream(String resource) 
 public static InputStream getUserResourceAsStream(String resource) 
 public static final URL locateConfig(String path) 
    Try to locate a local URL representing the incoming path. The first attempt assumes that the incoming path is an actual URL string (file://, etc). If this does not work, then the next attempts try to locate this UURL as a java system resource.