java.lang.Object | |
↳ | org.hibernate.util.ConfigHelper |
A simple class to centralize logic needed to locate config files on the system.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Try to locate a local URL representing the incoming path.
| |||||||||||
Loads a properties instance based on the data at the incoming config location.
| |||||||||||
Open an InputStream to the URL represented by the incoming path.
| |||||||||||
Open an Reader to the URL represented by the incoming path.
| |||||||||||
Try to locate a local URL representing the incoming path.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Try to locate a local URL representing the incoming path. This method only attempts to locate this URL as a java system resource.
path | The path representing the config location. |
---|
Loads a properties instance based on the data at the incoming config location.
path | The path representing the config location. |
---|
HibernateException | Unable to load properties from that resource. |
---|
Open an InputStream to the URL represented by the incoming path. First makes a call
to locateConfig(java.lang.String)
in order to find an appropriate URL.
openStream()
is then called to obtain the stream.
path | The path representing the config location. |
---|
HibernateException | Unable to open stream to that resource. |
---|
Open an Reader to the URL represented by the incoming path. First makes a call
to locateConfig(java.lang.String)
in order to find an appropriate URL.
openStream()
is then called to obtain a stream, which is then
wrapped in a Reader.
path | The path representing the config location. |
---|
HibernateException | Unable to open reader to that resource. |
---|
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.
path | The path representing the config location. |
---|