ClassLoaderService
instead@Deprecated
public final class ConfigHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.net.URL |
findAsResource(java.lang.String path)
Deprecated.
Try to locate a local URL representing the incoming path.
|
static java.io.InputStream |
getConfigStream(java.lang.String path)
Deprecated.
Open an InputStream to the URL represented by the incoming path.
|
static java.io.InputStream |
getResourceAsStream(java.lang.String resource)
Deprecated.
|
static java.io.InputStream |
getUserResourceAsStream(java.lang.String resource)
Deprecated.
|
static java.net.URL |
locateConfig(java.lang.String path)
Deprecated.
Try to locate a local URL representing the incoming path.
|
public static java.net.URL locateConfig(java.lang.String path)
path
- The path representing the config location.public static java.net.URL findAsResource(java.lang.String path)
path
- The path representing the config location.public static java.io.InputStream getConfigStream(java.lang.String path) throws HibernateException
locateConfig(java.lang.String)
in order to find an appropriate URL.
URL.openStream()
is then called to obtain the stream.path
- The path representing the config location.HibernateException
- Unable to open stream to that resource.public static java.io.InputStream getResourceAsStream(java.lang.String resource)
public static java.io.InputStream getUserResourceAsStream(java.lang.String resource)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.