ClassLoaderService
instead@Deprecated public final class ConfigHelper extends Object
Modifier and Type | Method and Description |
---|---|
static URL |
findAsResource(String path)
Deprecated.
Try to locate a local URL representing the incoming path.
|
static InputStream |
getConfigStream(String path)
Deprecated.
Open an InputStream to the URL represented by the incoming path.
|
static InputStream |
getResourceAsStream(String resource)
Deprecated.
|
static InputStream |
getUserResourceAsStream(String resource)
Deprecated.
|
static URL |
locateConfig(String path)
Deprecated.
Try to locate a local URL representing the incoming path.
|
public static URL locateConfig(String path)
path
- The path representing the config location.public static URL findAsResource(String path)
path
- The path representing the config location.public static InputStream getConfigStream(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 InputStream getResourceAsStream(String resource)
public static InputStream getUserResourceAsStream(String resource)
Copyright © 2016 JBoss by Red Hat. All rights reserved.