public class ClasspathConfigSourceJ extends ConfigSourceJ
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
resourcePath |
| Constructor and Description |
|---|
ClasspathConfigSourceJ(java.lang.String resourcePath)
Sources configuration data from a resource on the classpath.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeOpened()
Tests whether this source can be opened [again].
|
long |
lastModifiedTime()
Provides the timestamp so that source file changes can be observed.
|
java.lang.String |
name()
The file name or similar that identifies the underlying resource.
|
protected java.io.InputStream |
openTheSource()
Implementations must provide the means to open their input stream in the necessary way.
|
open, timesOpenedpublic ClasspathConfigSourceJ(java.lang.String resourcePath)
resourcePath - the classpath name of the resource to be loaded.public java.lang.String name()
ConfigSourceJname in class ConfigSourceJpublic long lastModifiedTime()
ConfigSourceJlastModifiedTime in class ConfigSourceJpublic boolean canBeOpened()
ConfigSourceJcanBeOpened in class ConfigSourceJprotected java.io.InputStream openTheSource()
throws java.io.FileNotFoundException
ConfigSourceJopenTheSource in class ConfigSourceJjava.io.FileNotFoundException