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, timesOpened
public ClasspathConfigSourceJ(java.lang.String resourcePath)
resourcePath
- the classpath name of the resource to be loaded.public java.lang.String name()
ConfigSourceJ
name
in class ConfigSourceJ
public long lastModifiedTime()
ConfigSourceJ
lastModifiedTime
in class ConfigSourceJ
public boolean canBeOpened()
ConfigSourceJ
canBeOpened
in class ConfigSourceJ
protected java.io.InputStream openTheSource() throws java.io.FileNotFoundException
ConfigSourceJ
openTheSource
in class ConfigSourceJ
java.io.FileNotFoundException