Java 类org.hibernate.internal.util.ConfigHelper 实例源码

项目:lams    文件:LocalXmlResourceResolver.java   
private InputStream resolveInLocalNamespace(String path) {
    try {
        return ConfigHelper.getUserResourceAsStream( path );
    }
    catch ( Throwable t ) {
        return null;
    }
}
项目:lams    文件:DTDEntityResolver.java   
protected InputStream resolveInLocalNamespace(String path) {
    try {
        return ConfigHelper.getUserResourceAsStream( path );
    }
    catch ( Throwable t ) {
        return null;
    }
}
项目:lams    文件:Configuration.java   
/**
 * Get the configuration file as an <tt>InputStream</tt>. Might be overridden
 * by subclasses to allow the configuration to be located by some arbitrary
 * mechanism.
 * <p/>
 * By default here we use classpath resource resolution
 *
 * @param resource The resource to locate
 *
 * @return The stream
 *
 * @throws HibernateException Generally indicates we cannot find the named resource
 */
protected InputStream getConfigurationInputStream(String resource) throws HibernateException {
    LOG.configurationResource( resource );
    return ConfigHelper.getResourceAsStream( resource );
}